diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 3779bddf..fc2ba4db 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -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),