shish 5 роки тому
батько
коміт
b9fda33e3b
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      common/components/payUtil.php

+ 1 - 1
common/components/payUtil.php

@@ -71,7 +71,7 @@ class payUtil
                     $shopId = $order->shopId ?? 0;
                     $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
                     if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
-                        $actPrice = $order->actPrice ?? 0;
+                        $actPrice = floatval($order->actPrice) ?? 0;
                         $payWay = $order->payWay ?? dict::getDict('payWay', 'wxPay');
                         $sound = $payWay == dict::getDict('payWay', 'wxPay') ? "微信收款{$actPrice}元" : "支付宝收款{$actPrice}元";
                         $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version=3&message=" . $sound;