Commit 05ebb74e authored by clone's avatar clone

bug

parent b0d054eb
...@@ -492,12 +492,20 @@ class Member extends Basic ...@@ -492,12 +492,20 @@ class Member extends Basic
$data = []; $data = [];
if(count($result) > 0){ if(count($result) > 0){
$jwt_data['id'] = $result[0]["id"];
$jwt_data['userNick'] = $result[0]["user_nick"];
$jwt_data['phone'] = $result[0]["user_phone"];
$jwt = new JwtUntils();
$AuthToken = $jwt->createToken($jwt_data);
$data["id"] = $result[0]["id"]; $data["id"] = $result[0]["id"];
$data["buyer_id"] = $result[0]["buyer_id"]; $data["buyer_id"] = $result[0]["buyer_id"];
$data["buyer_nick"] = $result[0]["buyer_nick"]; $data["buyer_nick"] = $result[0]["buyer_nick"];
$data["user_nick"] = $result[0]["user_nick"]; $data["user_nick"] = $result[0]["user_nick"];
$data["user_phone"] = $result[0]["user_phone"]; $data["user_phone"] = $result[0]["user_phone"];
$data["user_pic"] = !empty($result[0]["user_pic"]) ? HEADERIMGURL . $result[0]["user_pic"] : $result[0]["other_pic"]; $data["user_pic"] = !empty($result[0]["user_pic"]) ? HEADERIMGURL . $result[0]["user_pic"] : $result[0]["other_pic"];
$data["AuthToken"] = $AuthToken;
}else{ }else{
return $this->response("101", "数据查询失败"); return $this->response("101", "数据查询失败");
} }
......
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