dever 3 lat temu
rodzic
commit
992a683bdd
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 2 0
      app/shop/database/info.php
  2. 2 1
      service/agent/src/My.php

+ 2 - 0
app/shop/database/info.php

@@ -878,6 +878,8 @@ return array
                 'town' => 'yes',
                 'is_agent' => 'yes',
                 'area' => array('yes', 'like'),
+                'type' => array('yes', 'in'),
+                'status' => 'yes',
                 'state' => 1,
             ),
             'type' => 'all',

+ 2 - 1
service/agent/src/My.php

@@ -146,7 +146,8 @@ class My extends Core
     # 获取门店
     public function getShop()
     {
-        $where['type'] = 10;
+        $where['type'] = '1,10';
+        $where['status'] = 1;
         $where['area'] = Dever::input('area');
         $where['is_agent'] = 1;
         $this->data['shop'] = Dever::db('shop/info')->getAllByType($where);