1
This commit is contained in:
parent
085274b5fe
commit
8e405a57eb
@ -136,10 +136,10 @@ class MarketController extends BaseController {
|
||||
$gameId = 2006;
|
||||
$funcId = 1;
|
||||
|
||||
$batchId = 0;
|
||||
$batchIdx = 0;
|
||||
$idx = 0;
|
||||
$itemId = 0;
|
||||
if (!phpcommon\extractBoxId($type, $batchId, $idx, $itemId)) {
|
||||
if (!phpcommon\extractBoxId($type, $batchIdx, $idx, $itemId)) {
|
||||
myself()->_rspErr(2, 'type parameter error');
|
||||
return;
|
||||
}
|
||||
@ -159,7 +159,7 @@ class MarketController extends BaseController {
|
||||
myself()->_rspErr(500, 'server internal error');
|
||||
return;
|
||||
}
|
||||
if ($batchId != $currBatchMeta['batch_id']) {
|
||||
if ($batchIdx != $currBatchMeta['id']) {
|
||||
myself()->_rspErr(500, 'server internal error');
|
||||
return;
|
||||
}
|
||||
@ -183,7 +183,7 @@ class MarketController extends BaseController {
|
||||
return;
|
||||
}
|
||||
|
||||
/*if (!$this->isTestMode() && BoxOrder::isBuyed($buyerAddress, $currBatchMeta['batch_id'])) {
|
||||
/*if (!$this->isTestMode() && BoxOrder::isBuyed($buyerAddress, $currBatchMeta['id'])) {
|
||||
myself()->_rspErr(1, 'account can only choose 1 hero to purchase');
|
||||
return;
|
||||
}*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user