1
This commit is contained in:
parent
2db5da79fe
commit
cdbbd13ef6
@ -168,6 +168,10 @@ class BcShopController extends BaseController {
|
||||
myself()->_rspErr(1, 'account can only choose 1 hero to purchase');
|
||||
return;
|
||||
}
|
||||
$orderId = BuyRecord::genOrderId($gameId,
|
||||
$funcId,
|
||||
myself()->_getNowTime(),
|
||||
$buyerAddress);
|
||||
|
||||
$fieldsKv = array(
|
||||
'game_id' => $gameId,
|
||||
@ -191,18 +195,14 @@ class BcShopController extends BaseController {
|
||||
if ($i <= count($items)) {
|
||||
$tokenId = phpcommon\setOrderIdSubIdx($orderId, $i);
|
||||
$fieldsKv['bc_mint_tokenid' . $i] = $tokenId;
|
||||
$fieldsKv['bc_mint_need' . $i] = $items[$i]['need'];
|
||||
$fieldsKv['bc_mint_itemid' . $i] = $items[$i]['item_id'];
|
||||
$fieldsKv['bc_mint_token_type' . $i] = $items[$i]['token_type'];
|
||||
$fieldsKv['bc_mint_need' . $i] = $items[$i - 1]['need'];
|
||||
$fieldsKv['bc_mint_itemid' . $i] = $items[$i - 1]['item_id'];
|
||||
$fieldsKv['bc_mint_token_type' . $i] = $items[$i - 1]['token_type'];
|
||||
}
|
||||
}
|
||||
if (MarketService::isTestMode()) {
|
||||
$fieldsKv['bc_paid'] = 1;
|
||||
}
|
||||
$orderId = BuyRecord::genOrderId($gameId,
|
||||
$funcId,
|
||||
myself()->_getNowTime(),
|
||||
$buyerAddress);
|
||||
$fieldsKv['order_id'] = $orderId;
|
||||
SqlHelper::insert(
|
||||
myself()->_getMarketMysql(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user