shish 2 vuotta sitten
vanhempi
commit
cc37caaf3d
1 muutettua tiedostoa jossa 1 lisäystä ja 19 poistoa
  1. 1 19
      biz/wx/classes/WxMessageClass.php

+ 1 - 19
biz/wx/classes/WxMessageClass.php

@@ -204,17 +204,6 @@ class WxMessageClass extends BaseClass
             return false;
         }
 
-        $needNotice = false;
-        if (getenv('YII_ENV') == 'production') {
-            if ($shop->mainId == 60) {
-                $needNotice = true;
-            }
-        } else {
-            if ($shop->mainId == 644) {
-                $needNotice = true;
-            }
-        }
-
         foreach ($adminList as $admin) {
             $openId = isset($admin['openId']) ? $admin['openId'] : '';
             if ($ptStyle == dict::getDict('ptStyle', 'ghs')) {
@@ -235,14 +224,7 @@ class WxMessageClass extends BaseClass
             ];
             $data['miniprogram']['appid'] = $wx['miniAppId'];
             $data['miniprogram']['pagepath'] = 'pagesOrder/detail?id=' . $orderId;
-            $ret = wxUtil::sendTaskInform($data, $wx, $ptStyle);
-
-            $errCode = $ret->errcode ?? '';
-            $errMsg = $ret->errmsg ?? '';
-            $adminName = $admin['name'] ?? '';
-            if ($needNotice == true) {
-                noticeUtil::push("{$adminName} 已通知,{$errCode} {$errMsg}", '15280215347');
-            }
+            wxUtil::sendTaskInform($data, $wx, $ptStyle);
         }
     }