This commit is contained in:
songliang 2023-07-04 10:35:50 +08:00
parent d52eaf61e4
commit 1a50c0af8a
2 changed files with 7 additions and 5 deletions

View File

@ -75,11 +75,13 @@ class BaseAuthedController extends BaseController {
$this->accountId = getReqVal('account_id', ''); $this->accountId = getReqVal('account_id', '');
$this->sessionId = getReqVal('session_id', ''); $this->sessionId = getReqVal('session_id', '');
if (SERVER_ENV != _DEBUG) {
if (!phpcommon\isValidSessionId($this->accountId, if (!phpcommon\isValidSessionId($this->accountId,
$this->sessionId)) { $this->sessionId)) {
phpcommon\sendError(500, 'invalid session_id'); phpcommon\sendError(500, 'invalid session_id');
die(); die();
} }
}
if (!(getReqVal('c', '') == 'User' && getReqVal('a', '') == 'login')) { if (!(getReqVal('c', '') == 'User' && getReqVal('a', '') == 'login')) {
if ((getReqVal('c', '') == 'Battle')) { if ((getReqVal('c', '') == 'Battle')) {
return; return;

View File

@ -522,11 +522,11 @@ class ShopController extends BaseAuthedController
$this->_rspErr(2, 'he maximum number of purchase restrictions has been reached 2'); $this->_rspErr(2, 'he maximum number of purchase restrictions has been reached 2');
return; return;
} }
$sendingTimes = $this->countBuyGoodsRequestTimesByGoodsId($address, $row['goods_id']); // $sendingTimes = $this->countBuyGoodsRequestTimesByGoodsId($address, $row['goods_id']);
if ($sendingTimes >= $row['limit_num']) { // if ($sendingTimes >= $row['limit_num']) {
$this->_rspErr(2, 'The maximum number of purchase restrictions has been reached 3'); // $this->_rspErr(2, 'The maximum number of purchase restrictions has been reached 3');
return; // return;
} // }
} }
break; break;
default: { default: {