瀏覽代碼

修改支付默认金额0.01

jun 1 月之前
父節點
當前提交
5c2de8deab
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Servers/WechatPay/Payment.php

+ 2 - 2
app/Servers/WechatPay/Payment.php

@@ -68,8 +68,8 @@ class Payment
                     /*'time_expire'  => $this->timestampToRfc3339(time() + env('ORDER_OUT_TIME')*60),*/
                     /*'time_expire'  => $this->timestampToRfc3339(time() + env('ORDER_OUT_TIME')*60),*/
                     'notify_url'   => env('APP_URL').'/api/wechat_pay/notify',
                     'notify_url'   => env('APP_URL').'/api/wechat_pay/notify',
                     'amount'       => [
                     'amount'       => [
-                        'total'    => 1,
-                        //'total'    => $params['total_price']*100,
+                        //'total'    => 1,
+                        'total'    => $params['total_price']*100,
                         'currency' => 'CNY'
                         'currency' => 'CNY'
                     ],
                     ],
                     'payer'        => [
                     'payer'        => [