Jonlin 6 лет назад
Родитель
Сommit
5299973a95
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      application/index/controller/Message.php

+ 14 - 0
application/index/controller/Message.php

@@ -65,4 +65,18 @@ class Message extends Controller
         return json_encode($data,JSON_UNESCAPED_UNICODE);
     }
 
+    // 留言类型
+    public function type()
+    {
+        $type = db('messagetype')->select();
+
+        $data = [
+            'status'=>1,
+            'msg'=>'成功',
+            'data'=>$type
+        ];
+
+        return json_encode($data,JSON_UNESCAPED_UNICODE);
+    }
+
 }