Jonlin 6 年之前
父节点
当前提交
996a55dab6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()
     {
-        $type = db('messagetype')->select();
+        $type = db('messagetype')->where('status',1)->select();
         for($i=0;$i<count($type);$i++){
             $type[$i]['addtime'] = date('Y-m-d H:i:s',$type[$i]['addtime']);
         }