|
|
@@ -2653,8 +2653,10 @@ class User extends BaseController
|
|
2653
|
2653
|
throw new \Exception("此微信号已被其他用户绑定");
|
|
2654
|
2654
|
}
|
|
2655
|
2655
|
$check = Db::name('user_extract_openid')->where('uid',$uid)->value('openid');
|
|
2656
|
|
- if (!empty($check) && $check != $openid){
|
|
2657
|
|
- throw new \Exception("您已绑定其他微信号");
|
|
|
2656
|
+ if (!empty($check)){
|
|
|
2657
|
+ if ($check != $openid) {
|
|
|
2658
|
+ throw new \Exception("您已绑定其他微信号");
|
|
|
2659
|
+ }
|
|
2658
|
2660
|
} else {
|
|
2659
|
2661
|
Db::name("user_extract_openid")->insert([
|
|
2660
|
2662
|
'uid' => $uid,
|