소스 검색

更新 target/fwutils/develop/function/template.lua

1585346868 1 개월 전
부모
커밋
4bbfb30bda
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      target/fwutils/develop/function/template.lua

+ 3 - 0
target/fwutils/develop/function/template.lua

@@ -163,6 +163,9 @@ M.handle = function(__cfg,functions)
         },
     }
 
+    if not utils.exists_file(fw.website_dir()..M.cfg.filepath()) then
+        return false
+    end
 
     local ext = utils.ext(M.cfg.filepath())
     local last_modified = fw.file_last_modified_time(fw.website_dir()..M.cfg.filepath())