重构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()
{
$account_id = $_REQUEST['account_id']; //账号
$conn = $this->getMysql($account_id);
phpcommon\SqlHelper::update
($conn,
'user',
array(
'accountid' => $account_id,
),
array(
'first_fight' => function () {
return '1';
}
)
);
$this->updateUserInfo(array(
'first_fight' => function () {
return '1';
}
));
$this->rspOk();
}