diff --git a/app/api/logic/ShopLogic.php b/app/api/logic/ShopLogic.php index e52daf73..80d26368 100644 --- a/app/api/logic/ShopLogic.php +++ b/app/api/logic/ShopLogic.php @@ -27,17 +27,6 @@ class ShopLogic extends Logic // 记录统计信息(访问商铺用户量) Event::listen('ShopStat', 'app\common\listener\ShopStat'); event('ShopStat', $shopId); - $shop_msg = Shop::where("city_id",$city_id) - ->where("is_run",1) - ->where("is_freeze",0) - ->where("del",0) - ->find(); - $c = ""; - if($shop_msg == null){ - $c = "id = 0"; - }else{ - $c = "city_id = ".$city_id.""; - } $where = [ 'del' => 0, 'id' => $shopId @@ -51,7 +40,6 @@ class ShopLogic extends Logic 'run_start_time', 'run_end_time', 'weekdays', ]; $shop = Shop::field($field) - ->where($c) ->where($where) ->append([ 'type_desc', 'is_expire' ]) ->findOrEmpty();