Pārlūkot izejas kodu

收款语音播报

shish 4 gadi atpakaļ
vecāks
revīzija
6fc8661d82
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      biz/shop/classes/ShopExtClass.php

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

@@ -105,7 +105,6 @@ class ShopExtClass extends BaseClass
     //零售花店收款声音播放 ssh 20220423
     public static function hdGatheringReport($order)
     {
-        noticeUtil::push("收款语音播报1", '15280215347');
         if ($order->fromType != dict::getDict("fromType", "shop")) {
             //非门店订单不播报语音
             return false;
@@ -125,14 +124,13 @@ class ShopExtClass extends BaseClass
         $shopId = $order->shopId ?? 0;
         $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
         if (isset($shopExt->lbSn) && !empty($shopExt->lbSn)) {
-            noticeUtil::push("收款语音播报2", '15280215347');
             $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;
             $curl = new curl\Curl();
             $curl->get($url);
-            noticeUtil::push("收款语音播报3:" . $sound, '15280215347');
+            noticeUtil::push("收款语音播报:" . $sound, '15280215347');
         }
     }