From 6cd300d7197e35fb9908962087e7488a3fda60a8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 28 Jul 2023 18:44:52 +0800 Subject: [PATCH] 1 --- doc/PayMethod.py | 23 +++++++++++++++++++ .../controller/PayMethodController.class.php | 19 +++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 doc/PayMethod.py create mode 100644 webapp/controller/PayMethodController.class.php diff --git a/doc/PayMethod.py b/doc/PayMethod.py new file mode 100644 index 00000000..bbbf6e51 --- /dev/null +++ b/doc/PayMethod.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +import _common + +class PayMethod(object): + + def __init__(self): + self.apis = [ + { + 'name': 'getPayMethods', + 'desc': '获取支付方式', + 'group': 'PayMethod', + 'url': 'webapp/index.php?c=PayMethod&a=getPayMethods', + 'params': [ + _common.ReqHead(), + ['token_type', 0, "选用币种"], + ], + 'response': [ + _common.RspHead(), + ['!pay_methods', [_common.PayMethod()], '支付方式列表'], + ] + } + ] diff --git a/webapp/controller/PayMethodController.class.php b/webapp/controller/PayMethodController.class.php new file mode 100644 index 00000000..54730699 --- /dev/null +++ b/webapp/controller/PayMethodController.class.php @@ -0,0 +1,19 @@ +_rspData( + array( + 'pay_methods' => $payMethods, + ) + ); + } + +}