...
This commit is contained in:
parent
3a9aed342e
commit
33e607d776
@ -464,6 +464,7 @@ class Market(object):
|
|||||||
_common.ReqHead(),
|
_common.ReqHead(),
|
||||||
['account', '', '账号id'],
|
['account', '', '账号id'],
|
||||||
['idx', '', '出售的idx'],
|
['idx', '', '出售的idx'],
|
||||||
|
['s_price', '', '出售价格USDT'],
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead()
|
_common.RspHead()
|
||||||
|
@ -687,6 +687,7 @@ class MarketController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$idx = getReqVal('idx', '');
|
$idx = getReqVal('idx', '');
|
||||||
|
$s_price = getReqVal('s_price', '');
|
||||||
|
|
||||||
$goods = $this->getGoodsByIdx($idx);
|
$goods = $this->getGoodsByIdx($idx);
|
||||||
if (!$goods) {
|
if (!$goods) {
|
||||||
@ -694,6 +695,11 @@ class MarketController extends BaseAuthedController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($s_price != $goods['s_price']) {
|
||||||
|
$this->_rspErr(1, 'price not match, idx:' . $idx);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$response = services\BlockChainService::gameItemMarketBuy(
|
$response = services\BlockChainService::gameItemMarketBuy(
|
||||||
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
|
Transaction::BUY_GOODS_FROM_MARKET_ACTION_TYPE,
|
||||||
$goods['owner_address'],
|
$goods['owner_address'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user