dever %!s(int64=3) %!d(string=hai) anos
pai
achega
992a683bdd
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  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);