shish %!s(int64=2) %!d(string=hai) anos
pai
achega
5006855ecf
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      biz/wx/classes/WxMessageClass.php

+ 17 - 0
biz/wx/classes/WxMessageClass.php

@@ -203,6 +203,18 @@ class WxMessageClass extends BaseClass
         if (empty($adminList)) {
             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')) {
@@ -224,6 +236,11 @@ class WxMessageClass extends BaseClass
             $data['miniprogram']['appid'] = $wx['miniAppId'];
             $data['miniprogram']['pagepath'] = 'pagesOrder/detail?id=' . $orderId;
             wxUtil::sendTaskInform($data, $wx, $ptStyle);
+
+            $adminName = $admin['name'] ?? '';
+            if ($needNotice == true) {
+                noticeUtil::push("{$adminName} 已通知", '15280215347');
+            }
         }
     }