From 25b80fb51f464e53f157117848b5f29d32913822 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 16 Aug 2024 11:57:32 +0800 Subject: [PATCH] 1 --- doc/README.php | 6 ++++-- doc/_common.py | 13 +++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/doc/README.php b/doc/README.php index 5d6aee0e..2c386ca3 100644 --- a/doc/README.php +++ b/doc/README.php @@ -5,7 +5,10 @@ * @apiVersion 0.0.1 * @apiSuccessExample {json} Success-Response: * 所有的协议都可能携带award和property_chg,award用来显示获得的东西,propery_chg用来更新本地数据 - * + * 公共错误码 + * errcode=1001 session_id已过期(客户端需回到游戏主界面) + * errcode=1006 该接口已升级为S版(客户端需要转到sapi) + * errcode=1008 该接口功能已关闭(admin后台上配置为功能关闭,客户端需刷新功能开关) * * */ @@ -49,7 +52,6 @@ * 删除 c=Currency * 删除 c=PayMethod * 删除 c=OutAppPlanet - * 删除 c=Shop * 删除 c=BlockChain&a=getTransactionList * 删除 c=BlockChain&a=getTransactionInfo * 删除 c=BlockChain&a=reportResult diff --git a/doc/_common.py b/doc/_common.py index e112a834..fc7d72a6 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -1843,6 +1843,14 @@ class ChainActivity(object): ['date', '', '事件发生时间'], ] +class RechargeCurrency(object): + + def __init__(self): + self.fields = [ + ['name', '', '货币名'], + ['address', '', '货币地址'], + ] + class RechargeGoods(object): def __init__(self): @@ -1853,10 +1861,7 @@ class RechargeGoods(object): ['first_present_diamond', 0, '首冲赠送钻石'], ['is_first_recharge', 0, '是否第一次购买该商品'], ['max_buy_times', 0, '充值次数上限'], - ['currency_list', [[ - ['name', '', '货币名'], - ['address', '', '货币地址'], - ]], '货币列表'], + ['!currency_list', [RechargeCurrency()], '货币列表'], ] class RechargeHistory(object):