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