Jonlin 6 년 전
부모
커밋
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);
+    }
+
 }