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->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;

View File

@ -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: {