From 33163078bdb1dca3ac5b81f18ce489fd6a3d4326 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 22 Nov 2021 13:53:26 +0800 Subject: [PATCH] 1 --- webapp/controller/RoleController.class.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 0942e811..b6cbdaf5 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -16,7 +16,6 @@ class RoleController extends BaseAuthedController { public function roleInfo() { - $account_id = $_REQUEST['account_id']; //$user_name = $_REQUEST['name']; //$avatar_url = $_REQUEST['avatar_url']; @@ -30,19 +29,13 @@ class RoleController extends BaseAuthedController { $testTask->updateTaskToDB(QUEST_DAY_LOGIN,1); //创建任务对象结束-- - $conn = $this->getMysql($account_id); - if (empty($_REQUEST['account_id'])) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } - + $conn = $this->getSelfMysql(); $this->updateSwitch($account_id, $switch_id); $row = $conn->execQueryOne('SELECT * FROM user WHERE accountid=:accountid;', array( ':accountid' => $account_id )); - //$newInfo = array(); if (!$row) { $season_time = 0; $season_meta_table = require('../res/season@season.php');