diff --git a/webapp/controller/ActivityController.class.php b/webapp/controller/ActivityController.class.php index d3b4b81..cac9a63 100644 --- a/webapp/controller/ActivityController.class.php +++ b/webapp/controller/ActivityController.class.php @@ -119,11 +119,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -243,11 +238,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -429,11 +419,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { @@ -471,11 +456,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -591,11 +571,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -689,11 +664,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $pool = $_REQUEST['pool']; $rec = $this->getRecommend($pool); $reward_id = 0; @@ -826,11 +796,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -970,11 +935,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -1120,11 +1080,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1170,11 +1125,6 @@ class ActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/AdditemController.class.php b/webapp/controller/AdditemController.class.php index 24ccf75..1f1f177 100644 --- a/webapp/controller/AdditemController.class.php +++ b/webapp/controller/AdditemController.class.php @@ -178,11 +178,6 @@ class AdditemController extends BaseAuthedController { { $accountid = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($accountid, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $num = $_REQUEST['num']; $conn = $this->getMysql($accountid); if (!$conn) { diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 8a3e8b2..a51e73d 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -41,11 +41,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -102,11 +97,6 @@ class BagController extends BaseAuthedController { public function exchangeBagItem() { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $item_id = $_REQUEST['item_id']; $color_id = $_REQUEST['color_id']; $conn = $this->getMysql($account_id); @@ -186,11 +176,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $item_id = $_REQUEST['item_id']; $conn = $this->getMysql($account_id); if(!$conn){ @@ -237,11 +222,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $item_id = $_REQUEST['item_id']; $conn = $this->getMysql($account_id); if(!$conn){ @@ -273,11 +253,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $item_id = $_REQUEST['item_id']; $conn = $this->getMysql($account_id); if(!$conn){ @@ -299,11 +274,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $arr = $_REQUEST['arr']; $delim = ','; $item_multiply = explode($delim, $arr); @@ -348,11 +318,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if(!$conn){ phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -396,11 +361,6 @@ class BagController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if(!$conn){ phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/EquipController.class.php b/webapp/controller/EquipController.class.php index fcffb41..c5fbcc0 100644 --- a/webapp/controller/EquipController.class.php +++ b/webapp/controller/EquipController.class.php @@ -43,11 +43,6 @@ class EquipController extends BaseAuthedController { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -130,11 +125,6 @@ class EquipController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -232,11 +222,6 @@ class EquipController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $equip_id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { @@ -280,11 +265,6 @@ class EquipController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $equip_id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { @@ -499,11 +479,6 @@ class EquipController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $equip_id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { @@ -669,11 +644,6 @@ class EquipController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $id = $_REQUEST['id']; if(!$conn){ diff --git a/webapp/controller/FesActivityController.class.php b/webapp/controller/FesActivityController.class.php index b880e40..2f93cb2 100644 --- a/webapp/controller/FesActivityController.class.php +++ b/webapp/controller/FesActivityController.class.php @@ -72,11 +72,6 @@ class FesActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -136,11 +131,6 @@ class FesActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -213,11 +203,6 @@ class FesActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/FriendController.class.php b/webapp/controller/FriendController.class.php index 17e1ee9..818cb22 100644 --- a/webapp/controller/FriendController.class.php +++ b/webapp/controller/FriendController.class.php @@ -207,11 +207,6 @@ class FriendController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -280,11 +275,6 @@ class FriendController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $user_name = $_REQUEST['user_name']; $avatar_url = $_REQUEST['avatar_url']; $sex = $_REQUEST['sex']; @@ -303,11 +293,6 @@ class FriendController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conns = $this->getAllMysql(); if (!$conns) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/GameOverController.class.php b/webapp/controller/GameOverController.class.php index 4828a70..e5ed3f8 100644 --- a/webapp/controller/GameOverController.class.php +++ b/webapp/controller/GameOverController.class.php @@ -44,11 +44,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $first_uuid = 'game2005api_first_uuid:' . $_REQUEST['account_id']; $r = $this->getRedis($first_uuid); @@ -111,11 +106,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $type = $_REQUEST['type']; $first_uuid = $_REQUEST['first_uuid']; $item_id = 0; @@ -294,11 +284,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $id = 10; if (isset($_REQUEST['id'])) { $id = $_REQUEST['id']; @@ -382,11 +367,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $addreward = new classes\AddReward(); $p = mt\Parameter::getOldParam(CLAN_VIDEO_DIAMOND); $par = $p['param_value']; @@ -403,11 +383,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -440,11 +415,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -490,11 +460,6 @@ class GameOverController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); diff --git a/webapp/controller/HangController.class.php b/webapp/controller/HangController.class.php index a024742..021656a 100644 --- a/webapp/controller/HangController.class.php +++ b/webapp/controller/HangController.class.php @@ -30,11 +30,6 @@ class HangController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -52,11 +47,6 @@ class HangController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -72,11 +62,6 @@ class HangController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -208,11 +193,6 @@ class HangController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $item_id = 0; $num = 0; diff --git a/webapp/controller/PassController.class.php b/webapp/controller/PassController.class.php index 80e10d1..c00c2c9 100644 --- a/webapp/controller/PassController.class.php +++ b/webapp/controller/PassController.class.php @@ -29,11 +29,6 @@ class PassController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -203,11 +198,6 @@ class PassController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -317,11 +307,6 @@ class PassController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -420,11 +405,6 @@ class PassController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -532,11 +512,6 @@ class PassController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -579,11 +554,6 @@ class PassController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/PayActivityController.class.php b/webapp/controller/PayActivityController.class.php index e4cd825..537d136 100644 --- a/webapp/controller/PayActivityController.class.php +++ b/webapp/controller/PayActivityController.class.php @@ -103,11 +103,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -173,11 +168,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -231,11 +221,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -299,11 +284,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -390,11 +370,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -904,11 +879,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -957,11 +927,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -1022,11 +987,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -1055,11 +1015,6 @@ class PayActivityController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $attachment = $_REQUEST['attachment']; $item_list = array(); $all_item_list = array(); diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index f2ba8bf..8481098 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -109,11 +109,6 @@ class PayController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -213,11 +208,6 @@ class PayController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -328,11 +318,6 @@ class PayController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -472,11 +457,6 @@ class PayController extends BaseAuthedController { public function buyItem() { //登录校验 - $login = loginVerify($_REQUEST['account_id'], $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $itemid = $_REQUEST['itemid']; $itemnum = $_REQUEST['itemnum']; @@ -508,11 +488,6 @@ class PayController extends BaseAuthedController { public function getOrderInfo() { - if (!loginVerify($_REQUEST['account_id'], - $_REQUEST['session_id'])) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($_REQUEST['account_id']); $row = $conn->execQueryOne('SELECT orderid, status, item_list, itemid ' . @@ -542,11 +517,6 @@ class PayController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/QuestController.class.php b/webapp/controller/QuestController.class.php index 58bb13f..5b213c2 100644 --- a/webapp/controller/QuestController.class.php +++ b/webapp/controller/QuestController.class.php @@ -39,11 +39,6 @@ class QuestController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $quest_list = array(); $active_list = array(); @@ -86,11 +81,6 @@ class QuestController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $quest_id = $_REQUEST['quest_id']; $quest_type = $_REQUEST['type']; $p = mt\Parameter::getOldParam(REWARD_TIMES); @@ -157,11 +147,6 @@ class QuestController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $quest_id = $_REQUEST['quest_id']; $quest_type = $_REQUEST['type']; $lv = $_REQUEST['lv']; @@ -256,11 +241,6 @@ class QuestController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $id = $_REQUEST['id']; $type = $_REQUEST['type']; $num = $_REQUEST['num']; diff --git a/webapp/controller/RankController.class.php b/webapp/controller/RankController.class.php index fd4c855..92f2b50 100644 --- a/webapp/controller/RankController.class.php +++ b/webapp/controller/RankController.class.php @@ -10,11 +10,6 @@ class RankController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index f382185..7b169b0 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -43,11 +43,6 @@ class RoleController extends BaseAuthedController { $testTask->updateTaskToDB(QUEST_DAY_LOGIN,1); //创建任务对象结束-- //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { @@ -865,11 +860,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $record_list = array(); if (!$conn) { @@ -908,11 +898,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -930,11 +915,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -963,11 +943,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $record_list = array(); if (!$conn) { @@ -1018,11 +993,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $record_list = array(); if (!$conn) { @@ -1060,11 +1030,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $pre_settlement_info = ''; if (!$conn) { @@ -1082,11 +1047,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $member = array(); $i = Rand(1, 100); $coin = Rand(1, 100) * 0.01; @@ -1148,11 +1108,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $coin_num = $_REQUEST['coin_num']; $reward_id = $_REQUEST['reward_id']; $reward_num = $_REQUEST['reward_num']; @@ -1178,11 +1133,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1309,11 +1259,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1397,11 +1342,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1445,11 +1385,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1478,11 +1413,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1529,11 +1459,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1609,11 +1534,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1690,11 +1610,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1772,11 +1687,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { @@ -1820,11 +1730,6 @@ class RoleController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { diff --git a/webapp/controller/ShareController.class.php b/webapp/controller/ShareController.class.php index 033a5d6..0dc19d4 100644 --- a/webapp/controller/ShareController.class.php +++ b/webapp/controller/ShareController.class.php @@ -121,11 +121,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -182,11 +177,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -311,11 +301,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -363,11 +348,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -439,11 +419,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -529,11 +504,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -590,11 +560,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -702,11 +667,6 @@ class ShareController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index bbaed75..8609261 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -165,11 +165,6 @@ class ShopController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { @@ -369,11 +364,6 @@ class ShopController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $id = $_REQUEST['id']; $type = $_REQUEST['type']; $shop_type = $_REQUEST['shop_type']; @@ -480,11 +470,6 @@ class ShopController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $id = $_REQUEST['id']; $type = $_REQUEST['type']; $num = $_REQUEST['num']; @@ -779,11 +764,6 @@ class ShopController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $id = $_REQUEST['id']; $type = $_REQUEST['type']; $num = $_REQUEST['num']; diff --git a/webapp/controller/SignController.class.php b/webapp/controller/SignController.class.php index 2797558..5740f4d 100644 --- a/webapp/controller/SignController.class.php +++ b/webapp/controller/SignController.class.php @@ -91,11 +91,6 @@ class SignController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); $last_sign_id = 0; if (!$conn) { @@ -231,11 +226,6 @@ class SignController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -323,11 +313,6 @@ class SignController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; //登录校验 - $login = loginVerify($account_id, $_REQUEST['session_id']); - if (!$login) { - phpcommon\sendError(ERR_USER_BASE + 1, 'session无效'); - return; - } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');