shish 3 years ago
parent
commit
07c5ad21e5
1 changed files with 16 additions and 0 deletions
  1. 16 0
      common/components/printUtil.php

+ 16 - 0
common/components/printUtil.php

@@ -86,6 +86,22 @@ class printUtil
                 }
             }
         }
+
+        $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}');
+                }
+            }
+        }
+
     }
 
     public function signature($time)