重构clientBattleReport

This commit is contained in:
aozhiwei 2021-11-22 18:01:16 +08:00
parent 0f75774543
commit 507b84c7ce

View File

@ -153,20 +153,11 @@ class RoleController extends BaseAuthedController {
public function clientBattleReport() public function clientBattleReport()
{ {
$account_id = $_REQUEST['account_id']; //账号 $this->updateUserInfo(array(
$conn = $this->getMysql($account_id); 'first_fight' => function () {
phpcommon\SqlHelper::update return '1';
($conn, }
'user', ));
array(
'accountid' => $account_id,
),
array(
'first_fight' => function () {
return '1';
}
)
);
$this->rspOk(); $this->rspOk();
} }