zory пре 9 часа
родитељ
комит
9441776558
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      app/controller/api/Goods.php

+ 5 - 5
app/controller/api/Goods.php

@@ -39,11 +39,11 @@ class Goods extends Base
             $data = $this->model->where("product_id",$param['goods'])->with(['poi' => function ($query) {
                 $query->field("poi_id,poi_name,poi_address,longitude,latitude,service_mobile,start_at,end_at,status");
             },'skuSpecs'])->append(['otherImg'])->withAttr(['otherImg' => function ($qu,$resp) {
-//                $img = json_decode($resp['image_list'],true);
-//                return array_map(function ($v) {
-//                    return $v['url'];
-//                }, $img);
-                return "";
+                $img = json_decode($resp['image_list'],true);
+                return array_map(function ($v) {
+                    return $v['url'];
+                }, $img);
+//                return "";
             }])->findOrEmpty();
             if ($data->isEmpty()) return errorTrans("empty.data");
             if ($data['poi']['status'] <> 1) return error("该店铺已关闭,请联系管理员");