Commit 78799e06 authored by hujun's avatar hujun

代码调整

parent 77ab8a5a
......@@ -23,7 +23,8 @@ class Member extends Basic
/**
* 用户登陆
*
* @return type
* @return \think\Response
* @throws \think\exception\DbException
*/
public function login() {
......@@ -70,7 +71,7 @@ class Member extends Basic
/**
* 退出登录
*
* @return type
* @return \think\Response
*/
public function logout() {
$id = $this->userId ? $this->userId : $this->params['id'];
......@@ -93,10 +94,7 @@ class Member extends Basic
/**
* 发送短信
* @param Request $this->request
* @return type
*/
/**
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
......@@ -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_data = $agent_->getAgentInfo('device_id',$referrer_id);
$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_source'] = $referrer_source;
......@@ -400,7 +396,10 @@ class Member extends Basic
/**
* 邀请记录
*
* @return type
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function inviteList() {
// $id = $this->params['id'];
......@@ -435,7 +434,10 @@ class Member extends Basic
/**
* 生成邀请二维码
*
* @return type
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function qrCode() {
......@@ -464,7 +466,11 @@ class Member extends Basic
/**
* 通过AuthToken获取用户信息编辑用
* @return type
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getUserInfo() {
......@@ -484,6 +490,9 @@ class Member extends Basic
* 上传头像
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function uploadHeadImg() {
$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