From f23cc45d701931485e3c10d3f6d397f58fdb269a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 22 Nov 2021 11:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4//=E7=99=BB=E5=BD=95=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ActivityController.class.php | 10 ---------- webapp/controller/AdditemController.class.php | 1 - webapp/controller/BagController.class.php | 8 -------- webapp/controller/EquipController.class.php | 6 ------ .../FesActivityController.class.php | 3 --- webapp/controller/FriendController.class.php | 3 --- .../controller/GameOverController.class.php | 7 ------- webapp/controller/HangController.class.php | 4 ---- webapp/controller/PassController.class.php | 6 ------ .../PayActivityController.class.php | 9 --------- webapp/controller/PayController.class.php | 5 ----- webapp/controller/QuestController.class.php | 4 ---- webapp/controller/RankController.class.php | 1 - webapp/controller/RoleController.class.php | 19 ------------------- webapp/controller/ShareController.class.php | 8 -------- webapp/controller/ShopController.class.php | 4 ---- webapp/controller/SignController.class.php | 3 --- 17 files changed, 101 deletions(-) diff --git a/webapp/controller/ActivityController.class.php b/webapp/controller/ActivityController.class.php index 0f425bf7..fbc4f11c 100644 --- a/webapp/controller/ActivityController.class.php +++ b/webapp/controller/ActivityController.class.php @@ -105,7 +105,6 @@ class ActivityController extends BaseAuthedController { public function newLuckDrawInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -224,7 +223,6 @@ class ActivityController extends BaseAuthedController { public function getNewLuckDraw() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -405,7 +403,6 @@ class ActivityController extends BaseAuthedController { public function drawTableInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { @@ -442,7 +439,6 @@ class ActivityController extends BaseAuthedController { public function getDrawTable() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -557,7 +553,6 @@ class ActivityController extends BaseAuthedController { public function doubleLuckDraw() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -650,7 +645,6 @@ class ActivityController extends BaseAuthedController { public function lotteryReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $pool = $_REQUEST['pool']; $rec = $this->getRecommend($pool); $reward_id = 0; @@ -782,7 +776,6 @@ class ActivityController extends BaseAuthedController { public function getBoxOrder() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -921,7 +914,6 @@ class ActivityController extends BaseAuthedController { public function getOrderReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -1066,7 +1058,6 @@ class ActivityController extends BaseAuthedController { public function drawBoxInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1111,7 +1102,6 @@ class ActivityController extends BaseAuthedController { public function drawBoxReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 7861c2f5..2846b1a0 100644 --- a/webapp/controller/AdditemController.class.php +++ b/webapp/controller/AdditemController.class.php @@ -164,7 +164,6 @@ class AdditemController extends BaseAuthedController { public function getCoin() { $accountid = $_REQUEST['account_id']; - //登录校验 $num = $_REQUEST['num']; $conn = $this->getMysql($accountid); if (!$conn) { diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index a51e73d8..dc83345d 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -40,7 +40,6 @@ class BagController extends BaseAuthedController { public function getBagInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -96,7 +95,6 @@ class BagController extends BaseAuthedController { public function exchangeBagItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $item_id = $_REQUEST['item_id']; $color_id = $_REQUEST['color_id']; $conn = $this->getMysql($account_id); @@ -175,7 +173,6 @@ class BagController extends BaseAuthedController { public function downItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $item_id = $_REQUEST['item_id']; $conn = $this->getMysql($account_id); if(!$conn){ @@ -221,7 +218,6 @@ class BagController extends BaseAuthedController { public function downItemColor() { $account_id = $_REQUEST['account_id']; - //登录校验 $item_id = $_REQUEST['item_id']; $conn = $this->getMysql($account_id); if(!$conn){ @@ -252,7 +248,6 @@ class BagController extends BaseAuthedController { public function tryItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $item_id = $_REQUEST['item_id']; $conn = $this->getMysql($account_id); if(!$conn){ @@ -273,7 +268,6 @@ class BagController extends BaseAuthedController { public function freeGetItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $arr = $_REQUEST['arr']; $delim = ','; $item_multiply = explode($delim, $arr); @@ -317,7 +311,6 @@ class BagController extends BaseAuthedController { public function updateWeizhuang() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if(!$conn){ phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -360,7 +353,6 @@ class BagController extends BaseAuthedController { public function deleteItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 2efed79e..a2d2b842 100644 --- a/webapp/controller/EquipController.class.php +++ b/webapp/controller/EquipController.class.php @@ -29,7 +29,6 @@ class EquipController extends BaseAuthedController { { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -111,7 +110,6 @@ class EquipController extends BaseAuthedController { public function speedUpTime() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -208,7 +206,6 @@ class EquipController extends BaseAuthedController { public function exchangeNewEquip() { $account_id = $_REQUEST['account_id']; - //登录校验 $equip_id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { @@ -251,7 +248,6 @@ class EquipController extends BaseAuthedController { public function shengjiEquip() { $account_id = $_REQUEST['account_id']; - //登录校验 $equip_id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { @@ -465,7 +461,6 @@ class EquipController extends BaseAuthedController { public function jinjieEquip() { $account_id = $_REQUEST['account_id']; - //登录校验 $equip_id = $_REQUEST['id']; $conn = $this->getMysql($account_id); if (!$conn) { @@ -630,7 +625,6 @@ class EquipController extends BaseAuthedController { public function unlockEquip() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 224a138d..76aa6cdd 100644 --- a/webapp/controller/FesActivityController.class.php +++ b/webapp/controller/FesActivityController.class.php @@ -58,7 +58,6 @@ class FesActivityController extends BaseAuthedController { public function acitivityInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -117,7 +116,6 @@ class FesActivityController extends BaseAuthedController { public function getActReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -189,7 +187,6 @@ class FesActivityController extends BaseAuthedController { public function getActExtraReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 818cb225..8dd4c519 100644 --- a/webapp/controller/FriendController.class.php +++ b/webapp/controller/FriendController.class.php @@ -206,7 +206,6 @@ class FriendController extends BaseAuthedController { public function createRoleInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -274,7 +273,6 @@ class FriendController extends BaseAuthedController { public function changeRoleInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $user_name = $_REQUEST['user_name']; $avatar_url = $_REQUEST['avatar_url']; $sex = $_REQUEST['sex']; @@ -292,7 +290,6 @@ class FriendController extends BaseAuthedController { public function selRepeatName() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 914f4e94..4ad25b38 100644 --- a/webapp/controller/GameOverController.class.php +++ b/webapp/controller/GameOverController.class.php @@ -30,7 +30,6 @@ class GameOverController extends BaseAuthedController { public function firstRewardInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $first_uuid = 'game2005api_first_uuid:' . $_REQUEST['account_id']; $r = $this->getRedis($first_uuid); @@ -92,7 +91,6 @@ class GameOverController extends BaseAuthedController { public function getFirstReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $type = $_REQUEST['type']; $first_uuid = $_REQUEST['first_uuid']; $item_id = 0; @@ -270,7 +268,6 @@ class GameOverController extends BaseAuthedController { public function getFuckBoxReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $id = 10; if (isset($_REQUEST['id'])) { $id = $_REQUEST['id']; @@ -353,7 +350,6 @@ class GameOverController extends BaseAuthedController { public function getDiamond() { $account_id = $_REQUEST['account_id']; - //登录校验 $addreward = new classes\AddReward(); $p = mt\Parameter::getOldParam(CLAN_VIDEO_DIAMOND); $par = $p['param_value']; @@ -369,7 +365,6 @@ class GameOverController extends BaseAuthedController { public function updateDiamond() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -401,7 +396,6 @@ class GameOverController extends BaseAuthedController { public function addSpoilsItems() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -446,7 +440,6 @@ class GameOverController extends BaseAuthedController { public function fightRevive() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 b8ba4801..d05dcc0b 100644 --- a/webapp/controller/HangController.class.php +++ b/webapp/controller/HangController.class.php @@ -16,7 +16,6 @@ class HangController extends BaseAuthedController { public function getTime() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -33,7 +32,6 @@ class HangController extends BaseAuthedController { public function getRedInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -48,7 +46,6 @@ class HangController extends BaseAuthedController { public function getOnlineReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -179,7 +176,6 @@ class HangController extends BaseAuthedController { public function getHangDoubleReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 bb205e8b..0a94f599 100644 --- a/webapp/controller/PassController.class.php +++ b/webapp/controller/PassController.class.php @@ -15,7 +15,6 @@ class PassController extends BaseAuthedController { public function getPassInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -184,7 +183,6 @@ class PassController extends BaseAuthedController { public function getPassReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -293,7 +291,6 @@ class PassController extends BaseAuthedController { public function getWeekReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -391,7 +388,6 @@ class PassController extends BaseAuthedController { public function getSeaReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -498,7 +494,6 @@ class PassController extends BaseAuthedController { public function buyExp() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -540,7 +535,6 @@ class PassController extends BaseAuthedController { public function getAllPassReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 0dfc8a3c..b2d833eb 100644 --- a/webapp/controller/PayActivityController.class.php +++ b/webapp/controller/PayActivityController.class.php @@ -89,7 +89,6 @@ class PayActivityController extends BaseAuthedController { public function rechargeRmb() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -154,7 +153,6 @@ class PayActivityController extends BaseAuthedController { public function rechargeBuy() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -207,7 +205,6 @@ class PayActivityController extends BaseAuthedController { public function unlockPassCard() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -270,7 +267,6 @@ class PayActivityController extends BaseAuthedController { public function recAcitivityInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -356,7 +352,6 @@ class PayActivityController extends BaseAuthedController { public function recAcitivityReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -865,7 +860,6 @@ class PayActivityController extends BaseAuthedController { public function shareDiscount() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -913,7 +907,6 @@ class PayActivityController extends BaseAuthedController { public function flushDiscountShop() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -973,7 +966,6 @@ class PayActivityController extends BaseAuthedController { public function changeHeadKuang() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -1001,7 +993,6 @@ class PayActivityController extends BaseAuthedController { public function addmailReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 cca22af2..5107c48b 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -95,7 +95,6 @@ class PayController extends BaseAuthedController { public function getPayInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -194,7 +193,6 @@ class PayController extends BaseAuthedController { public function getVipInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -304,7 +302,6 @@ class PayController extends BaseAuthedController { public function getVipReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -443,7 +440,6 @@ class PayController extends BaseAuthedController { public function buyItem() { - //登录校验 $itemid = $_REQUEST['itemid']; $itemnum = $_REQUEST['itemnum']; @@ -503,7 +499,6 @@ class PayController extends BaseAuthedController { public function addADtimes() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 52be0df6..b4a47bd7 100644 --- a/webapp/controller/QuestController.class.php +++ b/webapp/controller/QuestController.class.php @@ -25,7 +25,6 @@ class QuestController extends BaseAuthedController { public function questInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); $quest_list = array(); $active_list = array(); @@ -67,7 +66,6 @@ class QuestController extends BaseAuthedController { public function doubleQuestReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $quest_id = $_REQUEST['quest_id']; $quest_type = $_REQUEST['type']; $p = mt\Parameter::getOldParam(REWARD_TIMES); @@ -133,7 +131,6 @@ class QuestController extends BaseAuthedController { public function submitQuest() { $account_id = $_REQUEST['account_id']; - //登录校验 $quest_id = $_REQUEST['quest_id']; $quest_type = $_REQUEST['type']; $lv = $_REQUEST['lv']; @@ -227,7 +224,6 @@ class QuestController extends BaseAuthedController { public function addGuildTask() { $account_id = $_REQUEST['account_id']; - //登录校验 $id = $_REQUEST['id']; $type = $_REQUEST['type']; $num = $_REQUEST['num']; diff --git a/webapp/controller/RankController.class.php b/webapp/controller/RankController.class.php index 92f2b507..c5fcf85a 100644 --- a/webapp/controller/RankController.class.php +++ b/webapp/controller/RankController.class.php @@ -9,7 +9,6 @@ class RankController extends BaseAuthedController { public function rankInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 8555e237..3eb58e09 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -29,7 +29,6 @@ class RoleController extends BaseAuthedController { $testTask = new NTaskController(); $testTask->updateTaskToDB(QUEST_DAY_LOGIN,1); //创建任务对象结束-- - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { @@ -846,7 +845,6 @@ class RoleController extends BaseAuthedController { public function historyRecord() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); $record_list = array(); if (!$conn) { @@ -884,7 +882,6 @@ class RoleController extends BaseAuthedController { public function shareGame() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -901,7 +898,6 @@ class RoleController extends BaseAuthedController { public function historyInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -929,7 +925,6 @@ class RoleController extends BaseAuthedController { public function collectReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); $record_list = array(); if (!$conn) { @@ -979,7 +974,6 @@ class RoleController extends BaseAuthedController { public function collectDoubleReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); $record_list = array(); if (!$conn) { @@ -1016,7 +1010,6 @@ class RoleController extends BaseAuthedController { public function getPreSettlementInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); $pre_settlement_info = ''; if (!$conn) { @@ -1033,7 +1026,6 @@ class RoleController extends BaseAuthedController { public function getRobotInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $member = array(); $i = Rand(1, 100); $coin = Rand(1, 100) * 0.01; @@ -1094,7 +1086,6 @@ class RoleController extends BaseAuthedController { public function getFightReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $coin_num = $_REQUEST['coin_num']; $reward_id = $_REQUEST['reward_id']; $reward_num = $_REQUEST['reward_num']; @@ -1119,7 +1110,6 @@ class RoleController extends BaseAuthedController { public function getNewHandReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1245,7 +1235,6 @@ class RoleController extends BaseAuthedController { public function exchangeCoin() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1328,7 +1317,6 @@ class RoleController extends BaseAuthedController { public function saveNewbie() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1371,7 +1359,6 @@ class RoleController extends BaseAuthedController { public function updateDailyAD() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1399,7 +1386,6 @@ class RoleController extends BaseAuthedController { public function getVideoReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1445,7 +1431,6 @@ class RoleController extends BaseAuthedController { public function getDeskReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1520,7 +1505,6 @@ class RoleController extends BaseAuthedController { public function getShareVideoReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1596,7 +1580,6 @@ class RoleController extends BaseAuthedController { public function getWatchAdReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -1673,7 +1656,6 @@ class RoleController extends BaseAuthedController { public function addVideotimes() { $account_id = $_REQUEST['account_id']; - //登录校验 } $conn = $this->getMysql($account_id); if (!$conn) { @@ -1716,7 +1698,6 @@ class RoleController extends BaseAuthedController { public function getFightEquip() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 c5e42e03..954bd2d6 100644 --- a/webapp/controller/ShareController.class.php +++ b/webapp/controller/ShareController.class.php @@ -107,7 +107,6 @@ class ShareController extends BaseAuthedController { public function beeReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -163,7 +162,6 @@ class ShareController extends BaseAuthedController { public function keyBoxInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -287,7 +285,6 @@ class ShareController extends BaseAuthedController { public function keyBoxDoubleReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -334,7 +331,6 @@ class ShareController extends BaseAuthedController { public function shareFriendInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -405,7 +401,6 @@ class ShareController extends BaseAuthedController { public function shareFriendReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -490,7 +485,6 @@ class ShareController extends BaseAuthedController { public function shareDobleReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -546,7 +540,6 @@ class ShareController extends BaseAuthedController { public function getKefuReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); @@ -653,7 +646,6 @@ class ShareController extends BaseAuthedController { public function kefuDoubleReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $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 72d8fcbd..87bb881d 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -151,7 +151,6 @@ class ShopController extends BaseAuthedController { public function newShopInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { @@ -350,7 +349,6 @@ class ShopController extends BaseAuthedController { public function flushShopItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $id = $_REQUEST['id']; $type = $_REQUEST['type']; $shop_type = $_REQUEST['shop_type']; @@ -456,7 +454,6 @@ class ShopController extends BaseAuthedController { public function newBuyShopItem() { $account_id = $_REQUEST['account_id']; - //登录校验 $id = $_REQUEST['id']; $type = $_REQUEST['type']; $num = $_REQUEST['num']; @@ -750,7 +747,6 @@ class ShopController extends BaseAuthedController { public function shopBuyMore() { $account_id = $_REQUEST['account_id']; - //登录校验 $id = $_REQUEST['id']; $type = $_REQUEST['type']; $num = $_REQUEST['num']; diff --git a/webapp/controller/SignController.class.php b/webapp/controller/SignController.class.php index d75afc16..b0516d77 100644 --- a/webapp/controller/SignController.class.php +++ b/webapp/controller/SignController.class.php @@ -77,7 +77,6 @@ class SignController extends BaseAuthedController { public function signInfo() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); $last_sign_id = 0; if (!$conn) { @@ -212,7 +211,6 @@ class SignController extends BaseAuthedController { public function signReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); @@ -299,7 +297,6 @@ class SignController extends BaseAuthedController { public function signDoubleReward() { $account_id = $_REQUEST['account_id']; - //登录校验 $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');