Commit c850ed99 authored by zhuwei's avatar zhuwei

优化

parent 7e25ae5d
......@@ -384,13 +384,11 @@ class UserService
//dump($user_res);exit;
if ($user_res['site_ids']) {
$site_ids_array = explode(',', $user_res['site_ids']);
//查询是否已有此id
if (in_array($site_id, $site_ids_array)) {
//找到匹配项
return true;
return true;//已有此id
} else {
//没有找到匹配项
$site_ids_array[] = $site_id;
$site_ids_array[] = $site_id;//没有
}
$site_ids = implode(",", $site_ids_array);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment