shish 2 år sedan
förälder
incheckning
be97777cca
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      app-hd/controllers/PurchaseController.php
  2. 1 1
      common/components/lakala/Lakala.php

+ 2 - 2
app-hd/controllers/PurchaseController.php

@@ -760,7 +760,7 @@ class PurchaseController extends BaseController
 
         if (isset($response['code']) == false || $response['code'] != '000000') {
             $errMsg = $response['msg'] ?? '';
-            noticeUtil::push('编号AA90:'.$errMsg, '15280215347');
+            noticeUtil::push('编号AA90:' . $errMsg, '15280215347');
             util::fail('发起支付失败');
         }
 
@@ -875,7 +875,7 @@ class PurchaseController extends BaseController
         $response = $laResource->driveWxPay($wxParams);
         if (isset($response['code']) == false || $response['code'] != 'BBS00000') {
             $errMsg = $response['msg'] ?? '';
-            noticeUtil::push($errMsg, '15280215347');
+            noticeUtil::push('编号99891:' . $errMsg, '15280215347');
             util::fail('支付失败');
         }
         $newParams = isset($response['resp_data']['acc_resp_fields']) ? $response['resp_data']['acc_resp_fields'] : [];

+ 1 - 1
common/components/lakala/Lakala.php

@@ -211,7 +211,7 @@ class Lakala
             'out_trade_no' => $orderSn,
             'account_type' => 'WECHAT',
             'trans_type' => 71,
-            'total_amount' => $amount * 100,
+            'total_amount' => bcmul($amount, 100, 2),
             'location_info' => $location_info,
             'subject' => $subject,
             'notify_url' => $notifyUrl,