소스 검색

出示付款

shish 4 년 전
부모
커밋
6beff2bf47
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      biz/shop/classes/ShopExtClass.php

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

@@ -82,16 +82,8 @@ class ShopExtClass extends BaseClass
         $shopId = $order->shopId ?? 0;
         $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
         if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
-            $actPrice = $order->actPrice ? floatval($order->actPrice) : 0;
-            $sound = '总计' . $actPrice . '元,请出示付款码';
-
             $mainPay = $order->mainPay ? floatval($order->mainPay) : 0;
-            $cash = $order->cash ?? 0;
-            $cash = floatval($cash);
-            if ($actPrice > $mainPay) {
-                $sound = '总计' . $actPrice . '元,现金付' . $cash . '元,还需付' . $mainPay . '元,请出示付款码';
-            }
-
+            $sound = '应付' . $mainPay . '元,请出示付款码';
             $url = "https://speaker.17laimai.cn/notify.php?id={$shopExt->lbSn}&token=HK1626595800&version=3&message=" . $sound;
             $curl = new curl\Curl();
             $curl->get($url);