Commit ee5618a3 authored by clone's avatar clone

bug

parent 28be6124
...@@ -40,12 +40,12 @@ class RegisterService ...@@ -40,12 +40,12 @@ class RegisterService
//todo 1.判断是否有此用户,包涵未激活或者冻结, 2.无此用户则注册,返回AuthToken ,3有则登录返回AuthToken //todo 1.判断是否有此用户,包涵未激活或者冻结, 2.无此用户则注册,返回AuthToken ,3有则登录返回AuthToken
//判断用户是否注册 //判断用户是否注册
$conditions["user_phone"] = $phone; $conditions["user_phone"] = $phone;
$fields = "id,user_nick,user_pic,sex,agent_id,referrer_id,referrer_source,user_phone,status"; $fields = "id,buyer_id,user_nick,user_pic,sex,agent_id,referrer_id,referrer_source,user_phone,status";
$user_info = $this->userModel->getUserByWhere($conditions, $fields); $user_info = $this->userModel->getUserByWhere($conditions, $fields);
$buyer_id = $sex = $id = $status = $agent_id = 0; $buyer_id = $sex = $id = $status = $agent_id = 0;
$buyer_nick = $user_nick = $other_pic = ""; $buyer_nick = $user_nick = $other_pic = "";
if (count($user_info) > 0) { if (count($user_info) > 0) {
switch ((int)$user_info[0]["status"]) { switch ((int)$user_info[0]["status"]) {
case -1://激活 case -1://激活
...@@ -64,6 +64,7 @@ class RegisterService ...@@ -64,6 +64,7 @@ class RegisterService
return [ "code" => 101, "data" => "该帐号异常" ]; return [ "code" => 101, "data" => "该帐号异常" ];
} }
$user_nick = $user_info[0]["user_nick"]; $user_nick = $user_info[0]["user_nick"];
$buyer_id = $user_info[0]["buyer_id"];
$sex = $user_info[0]["sex"]; $sex = $user_info[0]["sex"];
$agent_id = $user_info[0]["agent_id"]; $agent_id = $user_info[0]["agent_id"];
$id = $user_info[0]["id"]; $id = $user_info[0]["id"];
......
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