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