瀏覽代碼

0807-1716-c01

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("该店铺已关闭,请联系管理员");