Commit 483401a6 authored by clone's avatar clone

bug

parent c87343ce
......@@ -92,6 +92,10 @@ class RegisterService
if ($agent_id == 0) {
$agent_id = $this->inviteRelationship($referrer_id, $referrer_source);
}
//todo 此处有个关系,解绑上一个的id
$this->userModel->unbundlingWx($buyer_id);
$userArr = $this->userBin($user_nick, $sex, $id, $buyer_id, $status, $agent_id, $phone, $referrer_id, $referrer_source, $last_login_ip, $other_pic);
//保存数据
......
......@@ -600,4 +600,10 @@ class Users extends Model
return 0;
}
}
public function unbundlingWx($buyer_id)
{
return $this->where("buyer_id", $buyer_id)->save([ "buyer_id" => 0 ]);
}
}
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