配置修改

This commit is contained in:
2026-04-18 14:22:03 +08:00
parent 344ca5a2ce
commit ab7ed34646

View File

@ -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();