lizhen_gitee 4 ماه پیش
والد
کامیت
b052270a22
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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();
     }