...
This commit is contained in:
parent
dca6395b5c
commit
dca36bd438
@ -1038,9 +1038,7 @@ class ShopController extends BaseAuthedController
|
|||||||
$this->internalAddItem($propertyChgService, $itemMeta, $goods_count, 1);
|
$this->internalAddItem($propertyChgService, $itemMeta, $goods_count, 1);
|
||||||
$this->_rspOk();
|
$this->_rspOk();
|
||||||
} else {
|
} else {
|
||||||
error_log("buy normal 1, need_price = " . $need_price . " goods_num = " . $goods_num);
|
|
||||||
$price = $this->normalizeWeb3Price($goods_num * $need_price);
|
$price = $this->normalizeWeb3Price($goods_num * $need_price);
|
||||||
error_log("buy normal 2, price = " . $price);
|
|
||||||
$item_id = $row['goods_id'];
|
$item_id = $row['goods_id'];
|
||||||
$item_count = $goods_num;
|
$item_count = $goods_num;
|
||||||
|
|
||||||
@ -1051,8 +1049,6 @@ class ShopController extends BaseAuthedController
|
|||||||
$item_count
|
$item_count
|
||||||
);
|
);
|
||||||
|
|
||||||
error_log("buy normal 3, response = " . json_encode($response));
|
|
||||||
|
|
||||||
BcOrder::upsert($response['trans_id'], array(
|
BcOrder::upsert($response['trans_id'], array(
|
||||||
'item_id' => $item_id,
|
'item_id' => $item_id,
|
||||||
'item_num' => $item_count,
|
'item_num' => $item_count,
|
||||||
@ -1066,6 +1062,9 @@ class ShopController extends BaseAuthedController
|
|||||||
|
|
||||||
$response['item_id'] = $item_id;
|
$response['item_id'] = $item_id;
|
||||||
$response['item_num'] = $item_count;
|
$response['item_num'] = $item_count;
|
||||||
|
|
||||||
|
error_log("buy normal, item_id = " . $item_id . " item_count = " . $item_count . " need_price = " . $need_price . " price = " . $price . " response = " . json_encode($response));
|
||||||
|
|
||||||
$this->_rspData(
|
$this->_rspData(
|
||||||
array(
|
array(
|
||||||
"block_chain" => $response
|
"block_chain" => $response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user