diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 87575da..2edfdf3 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -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(); }