shish il y a 3 ans
Parent
commit
f66e71a3b0
1 fichiers modifiés avec 15 ajouts et 15 suppressions
  1. 15 15
      common/components/printUtil.php

+ 15 - 15
common/components/printUtil.php

@@ -71,7 +71,7 @@ class printUtil
                 $msg = $arr['msg'] ?? '';
                 noticeUtil::push('有订单打印报错了!!请注意查看,报错内容:' . $msg, '15280215347');
                 $mainId = $shop->mainId ?? 0;
-                $shopId = $shop->id ?? 0;
+                $shopName = $shop->shopName ?? '';
                 $staffList = ShopAdminClass::getAllByCondition(['mainId' => $mainId], null, '*', null, true);
                 if (!empty($staffList)) {
                     foreach ($staffList as $staff) {
@@ -80,28 +80,28 @@ class printUtil
                         $delStatus = $staff->delStatus ?? 0;
                         if ($isPt == 0 && $remind == 1 && $delStatus == 0) {
                             $mobile = $staff->mobile ?? '';
-                            sms::send($mobile . ',' . $shopId, '请注意,您有一个订单花材很多,小票没有打出来。门店{$var}');
+                            sms::send($mobile . ',' . $shopName, '请注意,您有一个订单花材很多,小票没有打出来。门店{$var}');
                         }
                     }
                 }
             }
-        }
 
-        $mainId = $shop->mainId ?? 0;
-        $shopId = $shop->id ?? 0;
-        $staffList = ShopAdminClass::getAllByCondition(['mainId' => $mainId], null, '*', null, true);
-        if (!empty($staffList)) {
-            foreach ($staffList as $staff) {
-                $remind = $staff->remind ?? 0;
-                $isPt = $staff->isPt ?? 0;
-                $delStatus = $staff->delStatus ?? 0;
-                if ($isPt == 0 && $remind == 1 && $delStatus == 0) {
-                    $mobile = $staff->mobile ?? '';
-                    sms::send($mobile . ',' . $shopId, '请注意,您有一个订单花材很多,小票没有打出来。门店{$var}');
+            $mainId = $shop->mainId ?? 0;
+            $shopName = $shop->shopName ?? '';
+            $staffList = ShopAdminClass::getAllByCondition(['mainId' => $mainId], null, '*', null, true);
+            if (!empty($staffList)) {
+                foreach ($staffList as $staff) {
+                    $remind = $staff->remind ?? 0;
+                    $isPt = $staff->isPt ?? 0;
+                    $delStatus = $staff->delStatus ?? 0;
+                    if ($isPt == 0 && $remind == 1 && $delStatus == 0) {
+                        $mobile = $staff->mobile ?? '';
+                        sms::send($mobile . ',' . $shopName, '请注意,您有一个订单花材很多,小票没有打出来。门店:{$var}');
+                    }
                 }
             }
-        }
 
+        }
     }
 
     public function signature($time)