Update README.md

This commit is contained in:
yansongda 2022-01-18 11:40:07 +08:00 committed by GitHub
parent fd921a2b5d
commit 5fd54d3808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);