This commit is contained in:
aozhiwei 2023-06-05 20:06:48 +08:00
parent 6d5ff76434
commit 4d74ea5397

View File

@ -64,6 +64,14 @@ class UserController extends BaseAuthedController {
$this->_updateUserInfo(array(
'last_login_time'=>myself()->_getNowTime(),
));
if ($this->_getChannel() == BC_CHANNEL &&
empty($userInfo['address'])
) {
User::Update(array(
'address' => $this->_getOpenId()
));
$userInfo['address'] = $this->_getOpenId();
}
$this->updateLastSeason($userInfo);
$this->_rspData(array(
'info' => User::show($userInfo),