1
This commit is contained in:
parent
b990d95d98
commit
104209acff
15
doc/User.py
15
doc/User.py
@ -52,18 +52,6 @@ class User(object):
|
|||||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'name': 'setAlreadyGuide',
|
|
||||||
'desc': '设置为已引导状态',
|
|
||||||
'group': 'User',
|
|
||||||
'url': 'webapp/index.php?c=User&a=setAlreadyGuide',
|
|
||||||
'params': [
|
|
||||||
],
|
|
||||||
'response': [
|
|
||||||
_common.RspHead(),
|
|
||||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'name': 'update',
|
'name': 'update',
|
||||||
'desc': '更新用户信息',
|
'desc': '更新用户信息',
|
||||||
@ -75,7 +63,8 @@ class User(object):
|
|||||||
['head_id', 0, '更新头像(可选参数,不传就不更新)'],
|
['head_id', 0, '更新头像(可选参数,不传就不更新)'],
|
||||||
['head_frame', 0, '更新头像框(可选参数,不传就不更新)'],
|
['head_frame', 0, '更新头像框(可选参数,不传就不更新)'],
|
||||||
['hero_id', 0, '更新上阵英雄id(可选参数,不传就不更新)'],
|
['hero_id', 0, '更新上阵英雄id(可选参数,不传就不更新)'],
|
||||||
['first_fight', 0, '更新首次战斗(可选参数,不传就不更新)']
|
['first_fight', 0, '更新首次战斗(可选参数,不传就不更新)'],
|
||||||
|
['already_guide', 0, '已引导(可选参数,不传就不更新)'],
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
|
@ -308,6 +308,15 @@ class UserController extends BaseAuthedController {
|
|||||||
'valid_func' => function ($val, &$errCode, &$errMsg) {
|
'valid_func' => function ($val, &$errCode, &$errMsg) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
'already_guide' => array(
|
||||||
|
'field_name' => 'already_guide',
|
||||||
|
'val_func' => function ($val) {
|
||||||
|
return empty($val) ? 0 : 1;
|
||||||
|
},
|
||||||
|
'valid_func' => function ($val, &$errCode, &$errMsg) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$fieldsKv = array();
|
$fieldsKv = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user