This commit is contained in:
songliang 2023-06-21 13:57:35 +08:00
parent 2e6b802b99
commit 96575205c7
3 changed files with 15 additions and 1 deletions

View File

@ -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客户端需要做容错处理)'],

View File

@ -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'],

View File

@ -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: