|
|
@@ -45,6 +45,21 @@ class MtController extends PublicController
|
|
|
}
|
|
|
|
|
|
$mtOrder = MtOrderClass::add($data);
|
|
|
+
|
|
|
+ $picArr = [];
|
|
|
+ $app = new Application($this->config);
|
|
|
+ $items = explode(trim($data['detail'], '[]'), ',');
|
|
|
+ foreach($items as $item){
|
|
|
+ $item = json_decode($item, true);
|
|
|
+ $appSpuCode = $item['app_spu_code'];
|
|
|
+
|
|
|
+ $params = ['app_poi_code' => $data['app_poi_code'], 'app_spu_code' => $appSpuCode];
|
|
|
+ $retailDetail = $app->retail->getDetail($params);
|
|
|
+ $pic[$appSpuCode] = $retailDetail['picture'];
|
|
|
+ }
|
|
|
+
|
|
|
+ Yii::info('picture: ' . json_encode($pic));
|
|
|
+
|
|
|
return Json::encode(['data' => 'ok']);
|
|
|
}
|
|
|
|