修复文档格式错误
This commit is contained in:
parent
406d2c6db2
commit
9ea995d7f5
@ -1,17 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import _common
|
import _common
|
||||||
|
|
||||||
class Reward(object):
|
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
self.fields = [
|
|
||||||
['id', 0, 'id'],
|
|
||||||
['group', '', 'group'],
|
|
||||||
['goods_id', 0, 'goods_id'],
|
|
||||||
['goods_num', 0, '堆叠数量'],
|
|
||||||
['shop_icon', 0, '商店图标'],
|
|
||||||
]
|
|
||||||
|
|
||||||
class FirstTopup(object):
|
class FirstTopup(object):
|
||||||
|
|
||||||
@ -28,8 +17,8 @@ class FirstTopup(object):
|
|||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['complete', 0, '是否已经完成首充 0-未完成 1-已完成'],
|
['complete', 0, '是否已经完成首充 0-未完成 1-已完成'],
|
||||||
['firstTopupList', [Reward], '奖励信息'],
|
['!firstTopupList', [_common.Reward()], '奖励信息'],
|
||||||
['status', [0], '领取状态 0-未领取 1-可领取 2-已领取'],
|
['!status', [0], '领取状态 0-未领取 1-可领取 2-已领取'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -56,8 +45,8 @@ class FirstTopup(object):
|
|||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['group', 0, '奖励组id'],
|
['group', 0, '奖励组id'],
|
||||||
['status', [0], '领取状态 0-未领取 1-可领取 2-已领取'],
|
['!status', [0], '领取状态 0-未领取 1-可领取 2-已领取'],
|
||||||
['reward', [Reward], '奖励信息'],
|
['!reward', [_common.Reward()], '奖励信息'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
35
doc/User.py
35
doc/User.py
@ -139,7 +139,8 @@ class User(object):
|
|||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
]
|
]
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
'name': 'initRank',
|
'name': 'initRank',
|
||||||
'desc': '排位初始化段位',
|
'desc': '排位初始化段位',
|
||||||
'group': 'User',
|
'group': 'User',
|
||||||
@ -151,7 +152,8 @@ class User(object):
|
|||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||||
]
|
]
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
'name': 'selectFreeItem',
|
'name': 'selectFreeItem',
|
||||||
'desc': '选择免费英雄和武器',
|
'desc': '选择免费英雄和武器',
|
||||||
'group': 'User',
|
'group': 'User',
|
||||||
@ -165,7 +167,8 @@ class User(object):
|
|||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||||
]
|
]
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
'name': 'getFreeItemList',
|
'name': 'getFreeItemList',
|
||||||
'desc': '获取免费英雄和武器列表',
|
'desc': '获取免费英雄和武器列表',
|
||||||
'group': 'User',
|
'group': 'User',
|
||||||
@ -178,4 +181,30 @@ class User(object):
|
|||||||
['!data', [], '列表'],
|
['!data', [], '列表'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'getFreeItemList',
|
||||||
|
'desc': '获取免费英雄和武器列表',
|
||||||
|
'group': 'User',
|
||||||
|
'url': 'webapp/index.php?c=User&a=getFreeItemList',
|
||||||
|
'params': [
|
||||||
|
_common.ReqHead(),
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.RspHead(),
|
||||||
|
['!data', [], '列表'],
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': 'updateAddressBind',
|
||||||
|
'desc': '更新钱包绑定信息',
|
||||||
|
'group': 'User',
|
||||||
|
'url': 'webapp/index.php?c=User&a=updateAddressBind',
|
||||||
|
'params': [
|
||||||
|
_common.ReqHead(),
|
||||||
|
['jwt', '', 'jwt数据'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.RspHead(),
|
||||||
|
]
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
@ -1156,3 +1156,14 @@ class BattleReward(object):
|
|||||||
['hero', BattleCegReward(), '英雄奖励'],
|
['hero', BattleCegReward(), '英雄奖励'],
|
||||||
['!items', [BattleItemReward()], '碎片奖励'],
|
['!items', [BattleItemReward()], '碎片奖励'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class Reward(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['id', 0, 'id'],
|
||||||
|
['group', '', 'group'],
|
||||||
|
['goods_id', 0, 'goods_id'],
|
||||||
|
['goods_num', 0, '堆叠数量'],
|
||||||
|
['shop_icon', 0, '商店图标'],
|
||||||
|
]
|
||||||
|
@ -38,6 +38,7 @@ class BaseAuthedController extends BaseController {
|
|||||||
private $accountId = '';
|
private $accountId = '';
|
||||||
private $sessionId = '';
|
private $sessionId = '';
|
||||||
private $mysqlConn = null;
|
private $mysqlConn = null;
|
||||||
|
private $address = null;
|
||||||
|
|
||||||
private function isWhiteList()
|
private function isWhiteList()
|
||||||
{
|
{
|
||||||
|
@ -800,6 +800,12 @@ class UserController extends BaseAuthedController {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function updateAddressBind()
|
||||||
|
{
|
||||||
|
$hero_uniid = getReqVal('jwt', '');
|
||||||
|
$this->_rspOk();
|
||||||
|
}
|
||||||
|
|
||||||
private function dampingElo($userInfo){
|
private function dampingElo($userInfo){
|
||||||
//每天elo衰减
|
//每天elo衰减
|
||||||
$time_diff = myself()->_getNowTime()-$userInfo['last_login_time'];
|
$time_diff = myself()->_getNowTime()-$userInfo['last_login_time'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user