From ab7ed34646832baeaaec33280d70d08c505aca94 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Sat, 18 Apr 2026 14:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/ShopLogic.php | 12 ------------ 1 file changed, 12 deletions(-) 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();