From d3de48d0bdea4c978c9431cdf9ab09c80c1966ab Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 30 Aug 2023 18:38:15 +0800 Subject: [PATCH] 1 --- webapp/controller/AccountVerifyController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp/controller/AccountVerifyController.class.php b/webapp/controller/AccountVerifyController.class.php index 115c5a24..62f9d36d 100644 --- a/webapp/controller/AccountVerifyController.class.php +++ b/webapp/controller/AccountVerifyController.class.php @@ -9,12 +9,19 @@ class AccountVerifyController extends BaseController { $guestAccount = getReqVal('guest_account', ''); $targetPlat = getReqVal('target_plat', ''); $targetAccount = getReqVal('target_account', ''); + $channel = phpcommon\extractChannel($guestAccount); + $gameId = phpcommon\extractGameId($guestAccount); + if ($channel != TAPTAP_CHANNEL || + $gameId != 2006) { + myself()->_rspErr(1, 'guest_account error'); + return; + } { $row = SqlHelper::ormSelectOne( myself()->_getMysql(''), 't_user', array( - 'account_id' => TAPTAP_CHANNEL . '_2006_' . $guestAccount + 'account_id' => $guestAccount )); if (!$row) { myself()->_rspErr(1, 'guest_account not found');