...
This commit is contained in:
parent
093a16442a
commit
e62136055e
@ -557,6 +557,7 @@ class HeroController extends BaseAuthedController {
|
||||
BcOrder::upsert($response['trans_id'], array(
|
||||
'item_id' => V_ITEM_RESET_CARD,
|
||||
'item_num' => 1,
|
||||
'price' => $price,
|
||||
'ext_data' => json_encode($hero_unnid),
|
||||
));
|
||||
$this->_rspData($response);
|
||||
|
@ -1200,6 +1200,7 @@ class MarketController extends BaseAuthedController
|
||||
'item_id' => $item_id,
|
||||
'item_num' => $item_count,
|
||||
'order_type' => 1,
|
||||
'price' => $goods['s_price'],
|
||||
'ext_data' => json_encode(array(
|
||||
'mode' => SHOP_BUY_MODE_NORMAL,
|
||||
)),
|
||||
|
@ -213,6 +213,7 @@ class PassController extends BaseAuthedController
|
||||
BcOrder::upsert($response['trans_id'], array(
|
||||
'item_id' => V_ITEM_PASS,
|
||||
'item_num' => 1,
|
||||
'price' => $price,
|
||||
));
|
||||
$this->_rspData($response);
|
||||
}
|
||||
@ -242,6 +243,7 @@ class PassController extends BaseAuthedController
|
||||
BcOrder::upsert($response['trans_id'], array(
|
||||
'item_id' => V_ITEM_EXP,
|
||||
'item_num' => $passMeta['total_exp'] - $this->userInfo['exp'],
|
||||
'price' => $price,
|
||||
));
|
||||
$this->_rspData($response);
|
||||
}
|
||||
|
@ -667,6 +667,7 @@ class ShopController extends BaseAuthedController
|
||||
'item_id' => $item_id,
|
||||
'item_num' => $item_count,
|
||||
'order_type' => 1,
|
||||
'price' => $goods_num * $need_price,
|
||||
'ext_data' => json_encode(array(
|
||||
'mode' => SHOP_BUY_MODE_NORMAL,
|
||||
'shop_id' => $row['shop_id'],
|
||||
@ -706,7 +707,7 @@ class ShopController extends BaseAuthedController
|
||||
$price = $this->normalizeWeb3Price($num);
|
||||
$item_id = V_ITEM_DIAMOND;
|
||||
$item_count = $num;
|
||||
|
||||
|
||||
error_log("buy diamond start " . $num);
|
||||
|
||||
$response = services\BlockChainService::gameItemMallBuy(
|
||||
@ -720,6 +721,7 @@ class ShopController extends BaseAuthedController
|
||||
'item_id' => $item_id,
|
||||
'item_num' => $item_count,
|
||||
'order_type' => 1,
|
||||
'price' => $num,
|
||||
'ext_data' => json_encode(array(
|
||||
'mode' => SHOP_BUY_MODE_NORMAL,
|
||||
)),
|
||||
@ -911,6 +913,7 @@ class ShopController extends BaseAuthedController
|
||||
'item_id' => $item_id,
|
||||
'item_num' => $item_count,
|
||||
'order_type' => 1,
|
||||
'price' => $goods['price'] * $count,
|
||||
'ext_data' => json_encode(array(
|
||||
'mode' => SHOP_BUY_MODE_DAILY_SELECTION,
|
||||
'idx' => $idx,
|
||||
|
@ -30,6 +30,7 @@ class BcOrder
|
||||
'ext_data' => getXVal($fieldsKv,'ext_data',''),
|
||||
'createtime' => myself()->_getNowTime(),
|
||||
'modifytime' => myself()->_getNowTime(),
|
||||
'price' => $fieldsKv['price'],
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user