afa před 5 měsíci
rodič
revize
4faf02e513
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      app/api/controller/Shops.php

+ 1 - 2
app/api/controller/Shops.php

@@ -54,7 +54,6 @@ class Shops extends Base
         $plat_id = $this->request->post('plat_id/d', 0); //平台
         $shop_id = $this->request->post('shop_id/d', 0); //店铺
         $variety_id = $this->request->post('variety_id/d', 0); //品种
-
         $where['a.user_id'] = $this->userinfo['id'];
         if($plat_id  > 0) $where['a.plat_id']   = $plat_id;
         if($shop_id  > 0) $where['a.shop_id']   = $shop_id;
@@ -63,7 +62,7 @@ class Shops extends Base
                 ->leftjoin('shop_list b', 'a.shop_id = b.id') //店铺
                 ->leftjoin('stock_config c', 'a.variety_id = c.id') //品种
                 ->leftjoin('product_config d', 'a.spec_id = d.id') //规格
-                ->field('a.id,a.shop_id,a.createtime,a.num, b.name shop_name,c.title variety_name,d.title spec_name')
+                ->field('a.id,a.plat_id,a.shop_id,a.createtime,a.num, b.name shop_name,c.title variety_name,d.title spec_name')
                 ->where($where)
                 ->paginate(15);
         $this->success('ok', $result);