This commit is contained in:
aozhiwei 2021-11-25 12:12:14 +08:00
parent 2e8588f155
commit de9e460af2
2 changed files with 10 additions and 10 deletions

View File

@ -124,7 +124,7 @@ class BaseAuthedController extends BaseController {
{ {
$row = phpcommon\SqlHelper::ormSelectOne $row = phpcommon\SqlHelper::ormSelectOne
($this->getSelfMysql(), ($this->getSelfMysql(),
'user', 't_user',
array( array(
'accountid' => $this->getAccountId() 'accountid' => $this->getAccountId()
) )
@ -532,14 +532,14 @@ class BaseAuthedController extends BaseController {
protected function getDtoUser($userInfo) protected function getDtoUser($userInfo)
{ {
return array( return array(
'name' => $userInfo['user_name'], 'name' => $userInfo['name'],
'sex' => $userInfo['sex'], 'sex' => $userInfo['sex'],
'head_id' => $userInfo['hi_id'], 'head_id' => $userInfo['hero_id'],
'head_frame' => $userInfo['head_kuang_id'], 'head_frame' => $userInfo['head_frame'],
'level' => $userInfo['lv'], 'level' => $userInfo['level'],
'exp' => $userInfo['lv_exp'], 'exp' => $userInfo['exp'],
'gold' => $userInfo['coin_num'], 'gold' => $userInfo['gold'],
'diamond' => $userInfo['diamond_num'], 'diamond' => $userInfo['diamond'],
'hero_id' => $userInfo['hero_id'], 'hero_id' => $userInfo['hero_id'],
'first_fight' => $userInfo['first_fight'], 'first_fight' => $userInfo['first_fight'],
); );

View File

@ -66,8 +66,8 @@ class UserController extends BaseAuthedController {
#'integral' => 0, #'integral' => 0,
#'season_time' => mt\Season::getCurrSeasonTime(), #'season_time' => mt\Season::getCurrSeasonTime(),
#'team_name' => '', #'team_name' => '',
'create_time' => $this->getNowTime(), 'createtime' => $this->getNowTime(),
'modify_time' => $this->getNowTime(), 'modifytime' => $this->getNowTime(),
) )
); );
{ {