1
This commit is contained in:
parent
cba7e36f87
commit
33163078bd
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user