1
This commit is contained in:
parent
6071f11daf
commit
6cd300d719
23
doc/PayMethod.py
Normal file
23
doc/PayMethod.py
Normal 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()], '支付方式列表'],
|
||||
]
|
||||
}
|
||||
]
|
19
webapp/controller/PayMethodController.class.php
Normal file
19
webapp/controller/PayMethodController.class.php
Normal 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,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user