|
|
@@ -48,7 +48,10 @@ class MtController extends PublicController
|
|
|
|
|
|
$picArr = [];
|
|
|
$app = new Application($this->config);
|
|
|
- $items = explode(trim($data['detail'], '[]'), ',');
|
|
|
+ $detail = $data['detail'];
|
|
|
+ $detail = substr_replace($detail, '{', 0, 1);
|
|
|
+ $detail = substr_replace($detail, '}', -1, 1);
|
|
|
+ $items = json_encode($detail, true);
|
|
|
foreach($items as $item){
|
|
|
$item = json_decode($item, true);
|
|
|
$appSpuCode = $item['app_spu_code'];
|