qifengquan 1 year ago
parent
commit
0f4c4fa5df
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/data/controller/api/Goods.php

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

@@ -118,6 +118,11 @@ class Goods extends Auth
             //->order('sort desc,id desc')
             ->page(true, false, false, 10);
         if (count($result['list']) > 0) GoodsService::bindData($result['list']);
+        foreach ($result['list'] as &$v){
+            if($v['slider']==''){
+                $v['slider']=null;
+            }
+        }
         $this->success('获取商品数据', $result);
     }