1
This commit is contained in:
parent
cba7e36f87
commit
33163078bd
@ -16,7 +16,6 @@ class RoleController extends BaseAuthedController {
|
|||||||
|
|
||||||
public function roleInfo()
|
public function roleInfo()
|
||||||
{
|
{
|
||||||
|
|
||||||
$account_id = $_REQUEST['account_id'];
|
$account_id = $_REQUEST['account_id'];
|
||||||
//$user_name = $_REQUEST['name'];
|
//$user_name = $_REQUEST['name'];
|
||||||
//$avatar_url = $_REQUEST['avatar_url'];
|
//$avatar_url = $_REQUEST['avatar_url'];
|
||||||
@ -30,19 +29,13 @@ class RoleController extends BaseAuthedController {
|
|||||||
$testTask->updateTaskToDB(QUEST_DAY_LOGIN,1);
|
$testTask->updateTaskToDB(QUEST_DAY_LOGIN,1);
|
||||||
//创建任务对象结束--
|
//创建任务对象结束--
|
||||||
|
|
||||||
$conn = $this->getMysql($account_id);
|
$conn = $this->getSelfMysql();
|
||||||
if (empty($_REQUEST['account_id'])) {
|
|
||||||
phpcommon\sendError(ERR_USER_BASE + 1, 'session无效');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->updateSwitch($account_id, $switch_id);
|
$this->updateSwitch($account_id, $switch_id);
|
||||||
|
|
||||||
$row = $conn->execQueryOne('SELECT * FROM user WHERE accountid=:accountid;',
|
$row = $conn->execQueryOne('SELECT * FROM user WHERE accountid=:accountid;',
|
||||||
array(
|
array(
|
||||||
':accountid' => $account_id
|
':accountid' => $account_id
|
||||||
));
|
));
|
||||||
//$newInfo = array();
|
|
||||||
if (!$row) {
|
if (!$row) {
|
||||||
$season_time = 0;
|
$season_time = 0;
|
||||||
$season_meta_table = require('../res/season@season.php');
|
$season_meta_table = require('../res/season@season.php');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user