|
|
|
@ -163,4 +163,19 @@ class AgentTeam extends BaseController |
|
|
|
return $this->renderError($exception->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 返回代理邀请码 |
|
|
|
* @throws \think\db\exception\DataNotFoundException |
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
*/ |
|
|
|
public function getAgentInviteCode() |
|
|
|
{ |
|
|
|
$agentUser = Session::get('login_agent_user_data'); |
|
|
|
|
|
|
|
$user = AgentUser::find($agentUser['id']); |
|
|
|
|
|
|
|
return $this->renderSuccess('数据返回成功',['code' => $user->invite_code]); |
|
|
|
} |
|
|
|
} |
|
|
|
|