mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信扫码支付模式1测试
This commit is contained in:
parent
cc7cc97c65
commit
bc59ee8ce5
@ -50,9 +50,11 @@ class Demo
|
|||||||
$notify = \WeChat\Contracts\Tools::xml2arr(file_get_contents('php://input'));
|
$notify = \WeChat\Contracts\Tools::xml2arr(file_get_contents('php://input'));
|
||||||
p('======= 来自扫码支付1的数据 ======');
|
p('======= 来自扫码支付1的数据 ======');
|
||||||
p($notify);
|
p($notify);
|
||||||
|
// 产品ID @todo 你的业务,并实现下面的统一下单操作
|
||||||
|
$product_id = $notify['product_id'];
|
||||||
// 微信统一下单处理
|
// 微信统一下单处理
|
||||||
$options = [
|
$options = [
|
||||||
'body' => '测试商品',
|
'body' => '测试商品,产品ID:' . $product_id,
|
||||||
'out_trade_no' => time(),
|
'out_trade_no' => time(),
|
||||||
'total_fee' => '1',
|
'total_fee' => '1',
|
||||||
'trade_type' => 'NATIVE',
|
'trade_type' => 'NATIVE',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user