From 1a50c0af8a110ac1b1536a56c02e5fcbcb85b15b Mon Sep 17 00:00:00 2001 From: songliang Date: Tue, 4 Jul 2023 10:35:50 +0800 Subject: [PATCH] ... --- webapp/controller/BaseAuthedController.class.php | 2 ++ webapp/controller/ShopController.class.php | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 0a6da045..8ccd92f0 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -75,11 +75,13 @@ class BaseAuthedController extends BaseController { $this->accountId = getReqVal('account_id', ''); $this->sessionId = getReqVal('session_id', ''); + if (SERVER_ENV != _DEBUG) { if (!phpcommon\isValidSessionId($this->accountId, $this->sessionId)) { phpcommon\sendError(500, 'invalid session_id'); die(); } + } if (!(getReqVal('c', '') == 'User' && getReqVal('a', '') == 'login')) { if ((getReqVal('c', '') == 'Battle')) { return; diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index d792c2af..271f22a6 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -522,11 +522,11 @@ class ShopController extends BaseAuthedController $this->_rspErr(2, 'he maximum number of purchase restrictions has been reached 2'); return; } - $sendingTimes = $this->countBuyGoodsRequestTimesByGoodsId($address, $row['goods_id']); - if ($sendingTimes >= $row['limit_num']) { - $this->_rspErr(2, 'The maximum number of purchase restrictions has been reached 3'); - return; - } + // $sendingTimes = $this->countBuyGoodsRequestTimesByGoodsId($address, $row['goods_id']); + // if ($sendingTimes >= $row['limit_num']) { + // $this->_rspErr(2, 'The maximum number of purchase restrictions has been reached 3'); + // return; + // } } break; default: {