|
|
@@ -1719,7 +1719,15 @@ class Auth extends BaseController
|
|
1719
|
1719
|
$user = $repository->accountByUser($data['phone']);
|
|
1720
|
1720
|
if ($data['type'] == 1) {
|
|
1721
|
1721
|
$data1 = ["wechat_user_id" => $data['third_user_id']];
|
|
1722
|
|
-
|
|
|
1722
|
+ // 屎山上边堆屎
|
|
|
1723
|
+ $check = Db::name('user_extract_openid')->where('uid', $user->uid)->count();
|
|
|
1724
|
+ if ($check < 1) {
|
|
|
1725
|
+ Db::name("user_extract_openid")->insert([
|
|
|
1726
|
+ 'uid' => $user->uid,
|
|
|
1727
|
+ 'openid' => $data['third_user_id'],
|
|
|
1728
|
+ 'type' => 1
|
|
|
1729
|
+ ]);
|
|
|
1730
|
+ }
|
|
1723
|
1731
|
if($this->source=='yhc' && $this->merId){ //一壶茶创建用户
|
|
1724
|
1732
|
$enterprise_user_count = Db::name("enterprise_user")->where("mer_id",$this->merId)->where('uid',$user->uid)->count();
|
|
1725
|
1733
|
if($enterprise_user_count<1){
|