1
This commit is contained in:
parent
8107c257eb
commit
993b970f6c
@ -377,6 +377,7 @@ class RankingItem(object):
|
|||||||
self.fields = [
|
self.fields = [
|
||||||
['ranked', 0, '排名'],
|
['ranked', 0, '排名'],
|
||||||
['account_id', '', '账号id'],
|
['account_id', '', '账号id'],
|
||||||
|
['address', '', '钱包地址'],
|
||||||
['name', '', '用户名字'],
|
['name', '', '用户名字'],
|
||||||
['head_id', 0, '头像id'],
|
['head_id', 0, '头像id'],
|
||||||
['head_frame', 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';
|
$errMsg = 'Parameter error name length must not be less than 3';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mb_strlen($name, 'utf8') > 7) {
|
if (mb_strlen($name, 'utf8') > 16) {
|
||||||
$errCode = 5;
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
$nameService = new services\NameService();
|
$nameService = new services\NameService();
|
||||||
|
@ -30,7 +30,7 @@ class RankingController extends BaseAuthedController {
|
|||||||
array_push($rankingList, array(
|
array_push($rankingList, array(
|
||||||
'ranked' => $ranked++,
|
'ranked' => $ranked++,
|
||||||
'account_id' => $user['account_id'],
|
'account_id' => $user['account_id'],
|
||||||
'name' => $user['name'],
|
'address' => phpcommon\extractOpenId($user['account_id']),
|
||||||
'name' => $user['name'],
|
'name' => $user['name'],
|
||||||
'sex' => $user['sex'],
|
'sex' => $user['sex'],
|
||||||
'head_id' => $user['hero_id'],
|
'head_id' => $user['hero_id'],
|
||||||
@ -52,7 +52,7 @@ class RankingController extends BaseAuthedController {
|
|||||||
'my_ranked' => array(
|
'my_ranked' => array(
|
||||||
'ranked' => -1,
|
'ranked' => -1,
|
||||||
'account_id' => $this->_getAccountId(),
|
'account_id' => $this->_getAccountId(),
|
||||||
'name' => $userInfo['name'],
|
'address' => $this->_getOpenId(),
|
||||||
'name' => $userInfo['name'],
|
'name' => $userInfo['name'],
|
||||||
'sex' => $userInfo['sex'],
|
'sex' => $userInfo['sex'],
|
||||||
'head_id' => $userInfo['hero_id'],
|
'head_id' => $userInfo['hero_id'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user