This commit is contained in:
aozhiwei 2023-07-28 18:44:52 +08:00
parent 6071f11daf
commit 6cd300d719
2 changed files with 42 additions and 0 deletions

23
doc/PayMethod.py Normal file
View File

@ -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()], '支付方式列表'],
]
}
]

View File

@ -0,0 +1,19 @@
<?php
require_once('mt/PayMethod.php');
class PayMethodController extends BaseAuthedController
{
public function getPayMethods()
{
$token_type = getReqVal('token_type', 99);
$payMethods = mt\PayMethod::getPayMethods($token_type);
$this->_rspData(
array(
'pay_methods' => $payMethods,
)
);
}
}