Jonlin 6 years ago
parent
commit
996a55dab6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/index/controller/Message.php

+ 1 - 1
application/index/controller/Message.php

@@ -91,7 +91,7 @@ class Message extends Controller
     // 留言类型
     // 留言类型
     public function type()
     public function type()
     {
     {
-        $type = db('messagetype')->select();
+        $type = db('messagetype')->where('status',1)->select();
         for($i=0;$i<count($type);$i++){
         for($i=0;$i<count($type);$i++){
             $type[$i]['addtime'] = date('Y-m-d H:i:s',$type[$i]['addtime']);
             $type[$i]['addtime'] = date('Y-m-d H:i:s',$type[$i]['addtime']);
         }
         }