Browse Source

协议文章

lizhen_gitee 3 months ago
parent
commit
b052270a22
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/index/controller/Index.php

+ 3 - 0
application/index/controller/Index.php

@@ -52,6 +52,9 @@ class Index extends Controller
             exit;
         }
         $content = Db::name('basedata')->where('key',$key)->find();
+        if(!$content){
+            exit;
+        }
         $this->assign('content',$content['content']);
         return $this->fetch();
     }