From 507b84c7ceb8f2d6602f7c6e9a99ad2233764a11 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 22 Nov 2021 18:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84clientBattleReport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/controller/RoleController.class.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) 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(); }