shish 3 ani în urmă
părinte
comite
e990d1bdba
1 a modificat fișierele cu 7 adăugiri și 6 ștergeri
  1. 7 6
      biz/wx/classes/WxMessageClass.php

+ 7 - 6
biz/wx/classes/WxMessageClass.php

@@ -143,12 +143,6 @@ class WxMessageClass extends BaseClass
             }
         }
 
-        if ($shop->id == 1212) {
-            noticeUtil::push("都市:{$order->orderSn} customName:{$customName}", '15280215347');
-        }else{
-            noticeUtil::push("新通知:{$order->orderSn} customName:{$customName}", '15280215347');
-        }
-
         $adminList = ShopAdminClass::getRemainAdmin($shop);
         if (empty($adminList)) {
             return false;
@@ -170,6 +164,13 @@ class WxMessageClass extends BaseClass
                     "remark" => ["value" => "点击查看详情", "color" => "#173177"]
                 ]
             ];
+
+            if ($shop->id == 1212) {
+                noticeUtil::push("都市:{$order->orderSn} customName:{$first}", '15280215347');
+            }else{
+                noticeUtil::push("新通知:{$order->orderSn} customName:{$first}", '15280215347');
+            }
+
             $data['miniprogram']['appid'] = $wx['miniAppId'];
             $data['miniprogram']['pagepath'] = 'pagesOrder/detail?id=' . $orderId;
             wxUtil::sendTaskInform($data, $wx, $ptStyle);