diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 51e795e..69dc191 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -124,7 +124,7 @@ class BaseAuthedController extends BaseController { { $row = phpcommon\SqlHelper::ormSelectOne ($this->getSelfMysql(), - 'user', + 't_user', array( 'accountid' => $this->getAccountId() ) @@ -532,14 +532,14 @@ class BaseAuthedController extends BaseController { protected function getDtoUser($userInfo) { return array( - 'name' => $userInfo['user_name'], + 'name' => $userInfo['name'], 'sex' => $userInfo['sex'], - 'head_id' => $userInfo['hi_id'], - 'head_frame' => $userInfo['head_kuang_id'], - 'level' => $userInfo['lv'], - 'exp' => $userInfo['lv_exp'], - 'gold' => $userInfo['coin_num'], - 'diamond' => $userInfo['diamond_num'], + 'head_id' => $userInfo['hero_id'], + 'head_frame' => $userInfo['head_frame'], + 'level' => $userInfo['level'], + 'exp' => $userInfo['exp'], + 'gold' => $userInfo['gold'], + 'diamond' => $userInfo['diamond'], 'hero_id' => $userInfo['hero_id'], 'first_fight' => $userInfo['first_fight'], ); diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 292b974..19f0209 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -66,8 +66,8 @@ class UserController extends BaseAuthedController { #'integral' => 0, #'season_time' => mt\Season::getCurrSeasonTime(), #'team_name' => '', - 'create_time' => $this->getNowTime(), - 'modify_time' => $this->getNowTime(), + 'createtime' => $this->getNowTime(), + 'modifytime' => $this->getNowTime(), ) ); {