diff --git a/doc/_common.py b/doc/_common.py index 4e8685bf..034c756e 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -377,6 +377,7 @@ class RankingItem(object): self.fields = [ ['ranked', 0, '排名'], ['account_id', '', '账号id'], + ['address', '', '钱包地址'], ['name', '', '用户名字'], ['head_id', 0, '头像id'], ['head_frame', 0, '头像框id'], diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 6595b950..36ee5f94 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -170,9 +170,9 @@ class BagController extends BaseAuthedController { $errMsg = 'Parameter error name length must not be less than 3'; return; } - if (mb_strlen($name, 'utf8') > 7) { + if (mb_strlen($name, 'utf8') > 16) { $errCode = 5; - $errMsg = 'Parameter error name length must not be greater than 7'; + $errMsg = 'Parameter error name length must not be greater than 16'; return; } $nameService = new services\NameService(); diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 5b6c023a..d7f28643 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -30,7 +30,7 @@ class RankingController extends BaseAuthedController { array_push($rankingList, array( 'ranked' => $ranked++, 'account_id' => $user['account_id'], - 'name' => $user['name'], + 'address' => phpcommon\extractOpenId($user['account_id']), 'name' => $user['name'], 'sex' => $user['sex'], 'head_id' => $user['hero_id'], @@ -52,7 +52,7 @@ class RankingController extends BaseAuthedController { 'my_ranked' => array( 'ranked' => -1, 'account_id' => $this->_getAccountId(), - 'name' => $userInfo['name'], + 'address' => $this->_getOpenId(), 'name' => $userInfo['name'], 'sex' => $userInfo['sex'], 'head_id' => $userInfo['hero_id'],