1
This commit is contained in:
parent
c24d5178de
commit
753c278e07
@ -13,7 +13,7 @@ class Ranking(object):
|
|||||||
'url': 'webapp/index.php?c=Ranking&a=rankingList',
|
'url': 'webapp/index.php?c=Ranking&a=rankingList',
|
||||||
'params': [
|
'params': [
|
||||||
_common.ReqHead(),
|
_common.ReqHead(),
|
||||||
['type', 0, '排行榜类型 1:积分榜']
|
['type', 0, '排行榜类型 1:积分榜 10:战斗时间']
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import _common
|
import _common
|
||||||
|
|
||||||
class User(object):
|
class User(object):
|
||||||
|
@ -109,6 +109,7 @@ class UserInfo(object):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.fields = [
|
self.fields = [
|
||||||
['activated', 0, '是否已激活'],
|
['activated', 0, '是否已激活'],
|
||||||
|
['rename_count', 0, '改名次数'],
|
||||||
['account_id', '', '账号id'],
|
['account_id', '', '账号id'],
|
||||||
['name', '', '用户名字'],
|
['name', '', '用户名字'],
|
||||||
['head_id', 0, '头像id'],
|
['head_id', 0, '头像id'],
|
||||||
|
@ -44,6 +44,7 @@ CREATE TABLE `t_user` (
|
|||||||
`first_fight` int(11) NOT NULL DEFAULT '0' COMMENT '是否首战',
|
`first_fight` int(11) NOT NULL DEFAULT '0' COMMENT '是否首战',
|
||||||
`last_season_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次赛季id',
|
`last_season_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次赛季id',
|
||||||
`activated` int(11) NOT NULL DEFAULT '0' COMMENT '是否已激活',
|
`activated` int(11) NOT NULL DEFAULT '0' COMMENT '是否已激活',
|
||||||
|
`rename_count` int(11) NOT NULL DEFAULT '0' COMMENT '改名次数',
|
||||||
`activatetime` int(11) NOT NULL DEFAULT '0' COMMENT '激活时间',
|
`activatetime` int(11) NOT NULL DEFAULT '0' COMMENT '激活时间',
|
||||||
`already_guide` int(11) NOT NULL DEFAULT '0' COMMENT '已引导',
|
`already_guide` int(11) NOT NULL DEFAULT '0' COMMENT '已引导',
|
||||||
`head_list` mediumblob COMMENT '拥有的头像列表',
|
`head_list` mediumblob COMMENT '拥有的头像列表',
|
||||||
|
@ -193,7 +193,10 @@ class BagController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->_updateUserInfo(array(
|
$this->_updateUserInfo(array(
|
||||||
'name' => $name
|
'name' => $name,
|
||||||
|
'rename_count' => function () {
|
||||||
|
return 'rename_count + 1';
|
||||||
|
}
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,7 +226,10 @@ class UserController extends BaseAuthedController {
|
|||||||
'sex' => $sex,
|
'sex' => $sex,
|
||||||
'head_id' => $headId,
|
'head_id' => $headId,
|
||||||
'head_frame' => $headFrame,
|
'head_frame' => $headFrame,
|
||||||
'activated' => 1
|
'activated' => 1,
|
||||||
|
'rename_count' => function () {
|
||||||
|
return 'rename_count + 1';
|
||||||
|
}
|
||||||
));
|
));
|
||||||
Hero::addTryHero($heroMeta, $heroCfg[1]);
|
Hero::addTryHero($heroMeta, $heroCfg[1]);
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
|
@ -25,6 +25,7 @@ class User extends BaseModel {
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'activated' => $row['activated'],
|
'activated' => $row['activated'],
|
||||||
|
'rename_count' => $row['rename_count'],
|
||||||
'account_id' => $row['account_id'],
|
'account_id' => $row['account_id'],
|
||||||
'name' => $row['name'],
|
'name' => $row['name'],
|
||||||
'sex' => $row['sex'],
|
'sex' => $row['sex'],
|
||||||
@ -50,6 +51,7 @@ class User extends BaseModel {
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'activated' => $row['activated'],
|
'activated' => $row['activated'],
|
||||||
|
'rename_count' => $row['rename_count'],
|
||||||
'account_id' => $row['account_id'],
|
'account_id' => $row['account_id'],
|
||||||
'name' => $row['name'],
|
'name' => $row['name'],
|
||||||
'sex' => $row['sex'],
|
'sex' => $row['sex'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user