|
@@ -149,6 +149,7 @@ class Mall extends Base
|
|
|
* @return name:cover type:string default:-- desc:商品封面图
|
|
|
* @return name:desc type:string default:-- desc:商品简述(副标题)
|
|
|
* @return name:image type:string default:-- desc:商品展示图[多张|隔开]
|
|
|
+ * @return name:image_arr type:array default:-- desc:商品展示图[数组]
|
|
|
* @return name:content type:string default:-- desc:商品详情图[多张|隔开]
|
|
|
* @return name:content_arr type:array default:-- desc:商品详情图
|
|
|
* @return name:low_price type:float default:-- desc:最低售价
|
|
@@ -180,6 +181,7 @@ class Mall extends Base
|
|
|
$detail['low_price'] = empty($detail['item_list']) ? 0 : min(array_column($detail['item_list'],'sell_price'));
|
|
|
$detail['max_price'] = empty($detail['item_list']) ? 0 : max(array_column($detail['item_list'],'sell_price'));
|
|
|
$detail['content_arr'] = $detail['content'] ? explode('|',$detail['content']) : null;
|
|
|
+ $detail['image_arr'] = $detail['image'] ? explode('|',$detail['image']) : null;
|
|
|
$this->success('oK',['goods_info'=>$detail]);
|
|
|
}
|
|
|
|