...
This commit is contained in:
parent
8031349ec9
commit
42329900e3
@ -109,9 +109,7 @@ class Shop(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['ret', _common.Union([
|
||||
[_common.ShopTrans(), '链上交易结果'],
|
||||
]), '购买结果'],
|
||||
['block_chain', [_common.ShopTrans()], '链上交易结果'],
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['goods_chg', _common.NewGoods(), '购买后更新商品的最新信息(可能为null客户端需要做容错处理)'],
|
||||
|
@ -1034,6 +1034,7 @@ class ShopController extends BaseAuthedController
|
||||
|
||||
public function buyGoodsDS()
|
||||
{
|
||||
$account = $this->_getAccountId();
|
||||
$address = $this->_getAddress();
|
||||
if (empty($address)) {
|
||||
$this->_rspErr(2, 'address is empty');
|
||||
@ -1063,7 +1064,7 @@ class ShopController extends BaseAuthedController
|
||||
return;
|
||||
}
|
||||
|
||||
if ($row['address'] != $address) {
|
||||
if ($row['address'] != $account) {
|
||||
$this->_rspErr(2, 'address is invalid');
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user