|
|
|
@ -178,4 +178,25 @@ class AgentTeam extends BaseController |
|
|
|
|
|
|
|
return $this->renderSuccess('数据返回成功',['code' => $user->invite_code]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 代理登录个人信息 |
|
|
|
* @return array |
|
|
|
* @throws \think\db\exception\DataNotFoundException |
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
* @throws \think\db\exception\ModelNotFoundException |
|
|
|
*/ |
|
|
|
public function getAgentUserInfo() |
|
|
|
{ |
|
|
|
$agentUser = Session::get('login_agent_user_data'); |
|
|
|
|
|
|
|
$user = AgentUser::find($agentUser['id']); |
|
|
|
|
|
|
|
return $this->renderSuccess('数据返回成功',[ |
|
|
|
'aid' => $user->id, |
|
|
|
'avatar' => get_image_url($user->avatar), |
|
|
|
'balance' => $user->balance, |
|
|
|
'withdrawal_balance' => $user->withdrawal_balance |
|
|
|
]); |
|
|
|
} |
|
|
|
} |
|
|
|
|