From 46a380a3e39157ef38ff9635d466d96be0f7fbab Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 7 Jul 2023 15:01:20 +0800 Subject: [PATCH] ... --- doc/Shop.py | 14 ++++++++++++++ webapp/controller/ShopController.class.php | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/Shop.py b/doc/Shop.py index 427dc86d..960962d1 100644 --- a/doc/Shop.py +++ b/doc/Shop.py @@ -117,6 +117,20 @@ class Shop(object): ['goods_chg', _common.NewGoods(), '购买后更新商品的最新信息(可能为null客户端需要做容错处理)'], ] }, + { + 'name': 'buyDiamond', + 'desc': '购买钻石', + 'group': 'Shop', + 'url': 'webapp/index.php?c=Shop&a=buyDiamond', + 'params': [ + _common.ReqHead(), + ['num', 0, '购买数量'], + ], + 'response': [ + _common.RspHead(), + ['block_chain', _common.ShopTrans(), '链上购买订单信息'], + ] + }, { 'name': 'buyGoodsDirect', 'desc': '直接购买(充值,gold)', diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index fdea0e17..71b5ce86 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -723,8 +723,8 @@ class ShopController extends BaseAuthedController )), )); - $response['item_id'] = $item_id; - $response['item_num'] = $item_count; + // $response['item_id'] = $item_id; + // $response['item_num'] = $item_count; error_log("buy diamond, item_id = " . $item_id . " item_count = " . $item_count . " num = " . $num . " price = " . $price . " response = " . json_encode($response));