1
This commit is contained in:
parent
33924e9454
commit
d00e7e3687
@ -180,10 +180,11 @@ class MarketController extends BaseController {
|
||||
return;
|
||||
}
|
||||
|
||||
/*if (!MarketService::isTestMode() && BoxOrder::isBuyed($buyerAddress, $currBatchMeta['id'])) {
|
||||
if (!MarketService::isTestMode() &&
|
||||
BoxOrder::isBuyed($buyerAddress, $currBatchMeta['id'])) {
|
||||
myself()->_rspErr(1, 'account can only choose 1 hero to purchase');
|
||||
return;
|
||||
}*/
|
||||
}
|
||||
|
||||
$orderId = BuyRecord::genOrderId($gameId,
|
||||
$funcId,
|
||||
@ -193,7 +194,7 @@ class MarketController extends BaseController {
|
||||
$tokenType = 0;
|
||||
$fieldsKv = array(
|
||||
'game_id' => 2006,
|
||||
'func_id' => funcId,
|
||||
'func_id' => $funcId,
|
||||
'batch_idx' => $currBatchMeta['id'],
|
||||
'order_id' => $orderId,
|
||||
'type' => $type,
|
||||
@ -391,8 +392,6 @@ class MarketController extends BaseController {
|
||||
$job = 0;
|
||||
{
|
||||
$heroMeta = mt\Hero::get($goodsMeta['item_id']);
|
||||
//'name' => emptyReplace($heroMeta['name'], 'Hill'),
|
||||
//'job' => emptyReplace($heroMeta['herotype'], '1'),
|
||||
if ($heroMeta) {
|
||||
$name = emptyReplace($heroMeta['name'], 'Hill');
|
||||
$job = emptyReplace($heroMeta['herotype'], '1');
|
||||
|
@ -33,6 +33,7 @@ class MarketService extends BaseService {
|
||||
const PRESALE_SOLD_OUT = 3;
|
||||
|
||||
const FUNCID_PRESALE = 1;
|
||||
const FUNCID_SHOP = 2;
|
||||
|
||||
const TOKEN_SALT = 'B8E6BD4F-FD7B-E2B8-6688-80A2D8632064';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user