From 5fd54d38088e223036f61e80288d42e8080b19d9 Mon Sep 17 00:00:00 2001 From: yansongda Date: Tue, 18 Jan 2022 11:40:07 +0800 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 593baca..636efaf 100644 --- a/README.md +++ b/README.md @@ -237,10 +237,14 @@ class WechatController public function index() { $order = [ - 'out_trade_no' => time(), - 'total_fee' => '1', // **单位:分** - 'body' => 'test body - 测试', - 'openid' => 'onkVf1FjWS5SBIixxxxxxx', + 'out_trade_no' => time().'', + 'description' => 'subject-测试', + 'amount' => [ + 'total' => 1, + ], + 'payer' => [ + 'openid' => 'onkVf1FjWS5SBxxxxxxxx', + ], ]; $pay = Pay::wechat($this->config)->mp($order);