...
This commit is contained in:
parent
d52eaf61e4
commit
1a50c0af8a
@ -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;
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user