...
This commit is contained in:
parent
2e6b802b99
commit
96575205c7
@ -109,6 +109,9 @@ class Shop(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['ret', Union([
|
||||
[_common.ShopTrans(), '链上交易结果'],
|
||||
]), '购买结果'],
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['goods_chg', _common.NewGoods(), '购买后更新商品的最新信息(可能为null客户端需要做容错处理)'],
|
||||
|
@ -1207,3 +1207,10 @@ class Sign(object):
|
||||
['!award', [AwardItem()], '奖励信息'],
|
||||
]
|
||||
|
||||
class ShopTrans(object):
|
||||
|
||||
def __init__(self):
|
||||
['trans_id', '', 'trans_id'],
|
||||
['!params', [''], 'params'],
|
||||
['item_id', 0, 'item_id'],
|
||||
['item_num', 0, 'item_num'],
|
@ -977,7 +977,11 @@ class ShopController extends BaseAuthedController
|
||||
)),
|
||||
));
|
||||
|
||||
$this->_rspOK();
|
||||
$response['item_id'] = $item_id;
|
||||
$response['item_num'] = $item_count;
|
||||
$this->_rspData(
|
||||
$response
|
||||
);
|
||||
break;
|
||||
|
||||
case ShopController::TOKEN_TYPE_BCEG:
|
||||
|
Loading…
x
Reference in New Issue
Block a user