Commit 78799e06 authored by hujun's avatar hujun

代码调整

parent 77ab8a5a
...@@ -22,8 +22,9 @@ class Member extends Basic ...@@ -22,8 +22,9 @@ class Member extends Basic
/** /**
* 用户登陆 * 用户登陆
* *
* @return type * @return \think\Response
* @throws \think\exception\DbException
*/ */
public function login() { public function login() {
...@@ -66,11 +67,11 @@ class Member extends Basic ...@@ -66,11 +67,11 @@ class Member extends Basic
return $this->response($data['status'], $data['msg'],$data['data']); return $this->response($data['status'], $data['msg'],$data['data']);
} }
/** /**
* 退出登录 * 退出登录
* *
* @return type * @return \think\Response
*/ */
public function logout() { public function logout() {
$id = $this->userId ? $this->userId : $this->params['id']; $id = $this->userId ? $this->userId : $this->params['id'];
...@@ -90,13 +91,10 @@ class Member extends Basic ...@@ -90,13 +91,10 @@ class Member extends Basic
return $this->response($data['status'], $data['msg']); return $this->response($data['status'], $data['msg']);
} }
/** /**
* 发送短信 * 发送短信
* @param Request $this->request *
* @return type
*/
/**
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
...@@ -281,14 +279,12 @@ class Member extends Basic ...@@ -281,14 +279,12 @@ class Member extends Basic
} }
} }
} }
$insert_data['referrer_id'] = $referrer_id;
$insert_data['referrer_source'] = $referrer_source;
$getui = new GeTuiUntils(); $ge_tui = new GeTuiUntils();
$agent_ = new AAgents(); $agent_ = new AAgents();
$agent_data = $agent_->getAgentInfo('device_id',$referrer_id); $agent_data = $agent_->getAgentInfo('device_id',$referrer_id);
$content = '你有新客户【'.$user_nick.'-'.$phone.'】成功注册App'; $content = '你有新客户【'.$user_nick.'-'.$phone.'】成功注册App';
$getui->public_push_message_for_one($referrer_id,$agent_data['device_id'],$content); $ge_tui->public_push_message_for_one($referrer_id,$agent_data['device_id'],$content);
} }
$insert_data['referrer_id'] = $referrer_id; $insert_data['referrer_id'] = $referrer_id;
$insert_data['referrer_source'] = $referrer_source; $insert_data['referrer_source'] = $referrer_source;
...@@ -396,11 +392,14 @@ class Member extends Basic ...@@ -396,11 +392,14 @@ class Member extends Basic
} }
return $this->response($data['status'], $data['msg'], $data['data']); return $this->response($data['status'], $data['msg'], $data['data']);
} }
/** /**
* 邀请记录 * 邀请记录
* *
* @return type * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function inviteList() { public function inviteList() {
// $id = $this->params['id']; // $id = $this->params['id'];
...@@ -431,11 +430,14 @@ class Member extends Basic ...@@ -431,11 +430,14 @@ class Member extends Basic
return $this->response($data['status'], $data['msg'], $data['data']); return $this->response($data['status'], $data['msg'], $data['data']);
} }
/** /**
* 生成邀请二维码 * 生成邀请二维码
* *
* @return type * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function qrCode() { public function qrCode() {
...@@ -461,10 +463,14 @@ class Member extends Basic ...@@ -461,10 +463,14 @@ class Member extends Basic
} }
return $this->response($data['status'], $data['msg'], $data['data']); return $this->response($data['status'], $data['msg'], $data['data']);
} }
/** /**
* 通过AuthToken获取用户信息编辑用 * 通过AuthToken获取用户信息编辑用
* @return type *
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function getUserInfo() { public function getUserInfo() {
...@@ -484,6 +490,9 @@ class Member extends Basic ...@@ -484,6 +490,9 @@ class Member extends Basic
* 上传头像 * 上传头像
* *
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function uploadHeadImg() { public function uploadHeadImg() {
$data['status'] = 101; $data['status'] = 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