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, + ) + ); + } + +}