This commit is contained in:
aozhiwei 2021-11-29 14:57:14 +08:00
parent b9c5f3e014
commit 9392309403
2 changed files with 9 additions and 22 deletions

View File

@ -47,18 +47,6 @@ class User(object):
['info',_common.UserInfo(), '用户信息'],
]
},
{
'name': 'clientBattleReport',
'desc': '客户端战报',
'group': 'User',
'url': 'webapp/index.php?c=User&a=clientBattleReport',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},
]
self.internalApis = [
{

View File

@ -108,6 +108,15 @@ class UserController extends BaseAuthedController {
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();
@ -155,16 +164,6 @@ class UserController extends BaseAuthedController {
));
}
public function clientBattleReport()
{
$this->_updateUserInfo(array(
'first_fight' => function () {
return '1';
}
));
$this->_rspOk();
}
public function battleReport()
{
$userInfo = $this->_getOrmUserInfo();