shish 3 жил өмнө
parent
commit
a3990f948a

+ 2 - 17
common/components/printUtil.php

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