Selaa lähdekoodia

通知可以了

shish 7 kuukautta sitten
vanhempi
commit
e6f96643e0
2 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 0 3
      common/components/rabbitmq/notifyConsumer.php
  2. 1 1
      common/components/wxUtil.php

+ 0 - 3
common/components/rabbitmq/notifyConsumer.php

@@ -81,7 +81,6 @@ class notifyConsumer implements ConsumerInterface
 
     private function ghsPtErrorAction($data)
     {
-        noticeUtil::push('1111', '15280215347');
         $orderId = $data['orderId'] ?? 0;
         $event = $data['event'] ?? '';
         $order = OrderClass::getById($orderId, true);
@@ -91,9 +90,7 @@ class notifyConsumer implements ConsumerInterface
             $customName = $order->customName ?? '';
             $shopId = $order->shopId ?? '';
             $shop = ShopClass::getById($shopId, true);
-            noticeUtil::push($result, '15280215347');
             if (!empty($shop)) {
-                noticeUtil::push($result, '15280215347');
                 WxMessageClass::expressErrorInform($shop, $customName, $orderId, $result);
             }
         }

+ 1 - 1
common/components/wxUtil.php

@@ -537,7 +537,7 @@ class wxUtil
         $curl = new curl\Curl();
         $response = $curl->setOption(CURLOPT_POSTFIELDS, $data)->post($url);
         Yii::info('发送模板消息返回:' . $response);
-        noticeUtil::push('发送模板消息返回:' . $response, '15280215347');
+        //noticeUtil::push('发送模板消息返回:' . $response, '15280215347');
         $arr = json_decode($response);
         return $arr;
     }