1
This commit is contained in:
parent
b9c5f3e014
commit
9392309403
12
doc/User.py
12
doc/User.py
@ -47,18 +47,6 @@ class User(object):
|
|||||||
['info',_common.UserInfo(), '用户信息'],
|
['info',_common.UserInfo(), '用户信息'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'name': 'clientBattleReport',
|
|
||||||
'desc': '客户端战报',
|
|
||||||
'group': 'User',
|
|
||||||
'url': 'webapp/index.php?c=User&a=clientBattleReport',
|
|
||||||
'params': [
|
|
||||||
_common.ReqHead(),
|
|
||||||
],
|
|
||||||
'response': [
|
|
||||||
_common.RspHead(),
|
|
||||||
]
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
self.internalApis = [
|
self.internalApis = [
|
||||||
{
|
{
|
||||||
|
@ -108,6 +108,15 @@ class UserController extends BaseAuthedController {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
'first_fight' => array(
|
||||||
|
'field_name' => 'first_fight',
|
||||||
|
'val_func' => function ($val) {
|
||||||
|
return empty($val) ? 0 : 1;
|
||||||
|
},
|
||||||
|
'valid_func' => function ($val, &$errCode, &$errMsg) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$fieldsKv = array();
|
$fieldsKv = array();
|
||||||
@ -155,16 +164,6 @@ class UserController extends BaseAuthedController {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clientBattleReport()
|
|
||||||
{
|
|
||||||
$this->_updateUserInfo(array(
|
|
||||||
'first_fight' => function () {
|
|
||||||
return '1';
|
|
||||||
}
|
|
||||||
));
|
|
||||||
$this->_rspOk();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function battleReport()
|
public function battleReport()
|
||||||
{
|
{
|
||||||
$userInfo = $this->_getOrmUserInfo();
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user