1.增加了判断用户是否拥有本地生活商家的状态判断

This commit is contained in:
xucong 2024-08-12 11:05:51 +08:00
parent fe68d46c68
commit 620e33dd04

@ -101,7 +101,7 @@ class UserLogic extends Logic
// 获取集采信息
$procurement = Mprocurement::where(['user_id' => $user_id, 'u_examine_state' => 1, 'u_state' => 1])->find();
// 查询是否建立本地商家
$local = Db::name("local_store")->where("user_id",$user_id)->where("is_delete",0)->select()->toArray();
$local = Db::name("local_store")->where("user_id",$user_id)->where("is_delete",0)->where("state",1)->select()->toArray();
if(empty($local)){
$user['local'] = 0;
}else{