wu 2c8cc4ffe5 fix | il y a 1 an | |
---|---|---|
config | il y a 2 ans | |
database | il y a 1 an | |
lib | il y a 1 an | |
sdk | il y a 3 ans | |
src | il y a 1 an | |
yspay | il y a 1 an | |
LICENSE | il y a 6 ans | |
README.md | il y a 6 ans | |
index.php | il y a 2 ans |
使用方法:
//下单
//page页面下单
$type = 1;
//$param参数
$param = array
(
'account_id' => '1',
'uid' => '1',
'username' => 'test',
'name' => '1',
'cash' => '1',
'refer' => '1',
'order_id' => '1',
'openid' => '1',
);
$result = Dever::load('pay/api')->get(1, $param);
//测试地址
http://192.168.33.10/grow/pay/?api.get?account_id=1&uid=10&username=test&product_id=1&name=test&cash=1&refer=2&json=1
//notify地址,需要做下rewrite 如nginx:
if ( $request_uri ~* /pay/notify ) {
rewrite ^/pay/notify/([0-9+]) /pay/index.php?l=api.notify&account_id=$1 last;
}