1
This commit is contained in:
parent
8107c257eb
commit
993b970f6c
@ -377,6 +377,7 @@ class RankingItem(object):
|
||||
self.fields = [
|
||||
['ranked', 0, '排名'],
|
||||
['account_id', '', '账号id'],
|
||||
['address', '', '钱包地址'],
|
||||
['name', '', '用户名字'],
|
||||
['head_id', 0, '头像id'],
|
||||
['head_frame', 0, '头像框id'],
|
||||
|
@ -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();
|
||||
|
@ -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'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user