From bc59ee8ce53d0b3acee95537fc48578d77c5dcec Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 4 May 2018 18:16:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=89=AB=E7=A0=81=E6=94=AF=E4=BB=98=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?1=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/store/controller/wechat/Demo.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/store/controller/wechat/Demo.php b/application/store/controller/wechat/Demo.php index 5e56c2469..30a9d7d3a 100644 --- a/application/store/controller/wechat/Demo.php +++ b/application/store/controller/wechat/Demo.php @@ -50,9 +50,11 @@ class Demo $notify = \WeChat\Contracts\Tools::xml2arr(file_get_contents('php://input')); p('======= 来自扫码支付1的数据 ======'); p($notify); + // 产品ID @todo 你的业务,并实现下面的统一下单操作 + $product_id = $notify['product_id']; // 微信统一下单处理 $options = [ - 'body' => '测试商品', + 'body' => '测试商品,产品ID:' . $product_id, 'out_trade_no' => time(), 'total_fee' => '1', 'trade_type' => 'NATIVE',