Commit cbf6835b authored by zhoujun's avatar zhoujun

调试钉钉

parent 56602253
...@@ -93,10 +93,10 @@ class UserService implements IUserService ...@@ -93,10 +93,10 @@ class UserService implements IUserService
if($user->status == 0) throw new Exception(config('msg.user.2002'),2002); if($user->status == 0) throw new Exception(config('msg.user.2002'),2002);
return $user; return $user;
}else{ }else{
$first = UserModel::first(); //$first = UserModel::first();
if($first){ //if($first){
if($first->union_id != $userInfo->unionid) throw new Exception(config('msg.user.2003'),2003); //if($first->union_id != $userInfo->unionid) throw new Exception(config('msg.user.2003'),2003);
} //}
$row = new UserModel(); $row = new UserModel();
$row->name = $userInfo->nick; $row->name = $userInfo->nick;
$row->password = bcrypt('123456'); $row->password = bcrypt('123456');
......
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