wupengfei 2 years ago
parent
commit
33c43423f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Qc.php

+ 1 - 1
application/api/controller/Qc.php

@@ -31,7 +31,7 @@ class Qc extends Base {
 
     public function index()
     {
-        $goods_info = StoreGoods::where('id',1)->with('itemList')->find()->toArray();
+        $goods_info = StoreGoods::where('id',1)->field('id,name')->with('itemList')->find()->toArray();
         var_dump($goods_info);
     }