Browse Source

注释文件写入接口

sugar1569 4 years atrás
parent
commit
d765fd29e9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      crmeb/app/adminapi/controller/v1/system/SystemFile.php

+ 2 - 0
crmeb/app/adminapi/controller/v1/system/SystemFile.php

@@ -60,6 +60,8 @@ class SystemFile extends AuthController
     //保存文件
     //保存文件
     public function savefile()
     public function savefile()
     {
     {
+        return app('json')->fail('请勿在生产环境使用,该接口存在危险性!!!');//如果开发环境,可以注释本行
+        
         $comment = $this->request->param('comment');
         $comment = $this->request->param('comment');
         $filepath = $this->request->param('filepath');
         $filepath = $this->request->param('filepath');
         if(empty($comment) || empty($filepath)){
         if(empty($comment) || empty($filepath)){