@@ -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);
+ }