配置修改
This commit is contained in:
@ -27,17 +27,6 @@ class ShopLogic extends Logic
|
|||||||
// 记录统计信息(访问商铺用户量)
|
// 记录统计信息(访问商铺用户量)
|
||||||
Event::listen('ShopStat', 'app\common\listener\ShopStat');
|
Event::listen('ShopStat', 'app\common\listener\ShopStat');
|
||||||
event('ShopStat', $shopId);
|
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 = [
|
$where = [
|
||||||
'del' => 0,
|
'del' => 0,
|
||||||
'id' => $shopId
|
'id' => $shopId
|
||||||
@ -51,7 +40,6 @@ class ShopLogic extends Logic
|
|||||||
'run_start_time', 'run_end_time', 'weekdays',
|
'run_start_time', 'run_end_time', 'weekdays',
|
||||||
];
|
];
|
||||||
$shop = Shop::field($field)
|
$shop = Shop::field($field)
|
||||||
->where($c)
|
|
||||||
->where($where)
|
->where($where)
|
||||||
->append([ 'type_desc', 'is_expire' ])
|
->append([ 'type_desc', 'is_expire' ])
|
||||||
->findOrEmpty();
|
->findOrEmpty();
|
||||||
|
|||||||
Reference in New Issue
Block a user