支付组件

wu 2c8cc4ffe5 fix 1 rok pred
config 6223086575 edit 2 rokov pred
database 2c8cc4ffe5 fix 1 rok pred
lib 2eb7cea698 edit 1 rok pred
sdk 1106bfb42f edit 3 rokov pred
src 38b811dbac 资金流水加导出 1 rok pred
yspay 2eb7cea698 edit 1 rok pred
LICENSE a2d123cf72 edit 6 rokov pred
README.md 881cda15d9 edit 6 rokov pred
index.php 5f978f16c0 edit 2 rokov pred

README.md

支付组件

使用方法:

//下单

//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;
}