Bladeren bron

组合付款

shish 4 jaren geleden
bovenliggende
commit
ac8c7eb676
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      biz/shop/classes/ShopExtClass.php

+ 1 - 1
biz/shop/classes/ShopExtClass.php

@@ -120,7 +120,7 @@ class ShopExtClass extends BaseClass
         $shopId = $order->shopId ?? 0;
         $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
         if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
-            $actPrice = floatval($order->actPrice) ?? 0;
+            $actPrice = $order->mainPay ? floatval($order->mainPay) : 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;