浏览代码

add isStop

visuddhinanda 2 年之前
父节点
当前提交
654d29fe95
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/Tools/Tools.php

+ 7 - 0
app/Tools/Tools.php

@@ -2,6 +2,13 @@
 namespace App\Tools;
 
 class Tools{
+    public static function isStop(){
+        if(file_exists(base_path('.stop'))){
+            return true;
+        }else{
+            return false;
+        }
+    }
 
     public static function getWordEn($strIn)
         {