Browse Source

优化一键生成API文档
优化接口请求方法

Karson 3 years ago
parent
commit
7adc36ae4f

+ 2 - 0
application/api/controller/Ems.php

@@ -31,6 +31,7 @@ class Ems extends Api
     /**
      * 发送验证码
      *
+     * @ApiMethod (POST)
      * @param string $email 邮箱
      * @param string $event 事件名称
      */
@@ -68,6 +69,7 @@ class Ems extends Api
     /**
      * 检测验证码
      *
+     * @ApiMethod (POST)
      * @param string $email   邮箱
      * @param string $event   事件名称
      * @param string $captcha 验证码

+ 2 - 0
application/api/controller/Sms.php

@@ -18,6 +18,7 @@ class Sms extends Api
     /**
      * 发送验证码
      *
+     * @ApiMethod (POST)
      * @param string $mobile 手机号
      * @param string $event 事件名称
      */
@@ -65,6 +66,7 @@ class Sms extends Api
     /**
      * 检测验证码
      *
+     * @ApiMethod (POST)
      * @param string $mobile 手机号
      * @param string $event 事件名称
      * @param string $captcha 验证码

+ 31 - 23
application/api/controller/User.php

@@ -32,13 +32,14 @@ class User extends Api
     /**
      * 会员登录
      *
+     * @ApiMethod (POST)
      * @param string $account  账号
      * @param string $password 密码
      */
     public function login()
     {
-        $account = $this->request->request('account');
-        $password = $this->request->request('password');
+        $account = $this->request->post('account');
+        $password = $this->request->post('password');
         if (!$account || !$password) {
             $this->error(__('Invalid parameters'));
         }
@@ -54,13 +55,14 @@ class User extends Api
     /**
      * 手机验证码登录
      *
+     * @ApiMethod (POST)
      * @param string $mobile  手机号
      * @param string $captcha 验证码
      */
     public function mobilelogin()
     {
-        $mobile = $this->request->request('mobile');
-        $captcha = $this->request->request('captcha');
+        $mobile = $this->request->post('mobile');
+        $captcha = $this->request->post('captcha');
         if (!$mobile || !$captcha) {
             $this->error(__('Invalid parameters'));
         }
@@ -92,6 +94,7 @@ class User extends Api
     /**
      * 注册会员
      *
+     * @ApiMethod (POST)
      * @param string $username 用户名
      * @param string $password 密码
      * @param string $email    邮箱
@@ -100,11 +103,11 @@ class User extends Api
      */
     public function register()
     {
-        $username = $this->request->request('username');
-        $password = $this->request->request('password');
-        $email = $this->request->request('email');
-        $mobile = $this->request->request('mobile');
-        $code = $this->request->request('code');
+        $username = $this->request->post('username');
+        $password = $this->request->post('password');
+        $email = $this->request->post('email');
+        $mobile = $this->request->post('mobile');
+        $code = $this->request->post('code');
         if (!$username || !$password) {
             $this->error(__('Invalid parameters'));
         }
@@ -139,6 +142,7 @@ class User extends Api
     /**
      * 修改会员个人信息
      *
+     * @ApiMethod (POST)
      * @param string $avatar   头像地址
      * @param string $username 用户名
      * @param string $nickname 昵称
@@ -147,10 +151,10 @@ class User extends Api
     public function profile()
     {
         $user = $this->auth->getUser();
-        $username = $this->request->request('username');
-        $nickname = $this->request->request('nickname');
-        $bio = $this->request->request('bio');
-        $avatar = $this->request->request('avatar', '', 'trim,strip_tags,htmlspecialchars');
+        $username = $this->request->post('username');
+        $nickname = $this->request->post('nickname');
+        $bio = $this->request->post('bio');
+        $avatar = $this->request->post('avatar', '', 'trim,strip_tags,htmlspecialchars');
         if ($username) {
             $exists = \app\common\model\User::where('username', $username)->where('id', '<>', $this->auth->id)->find();
             if ($exists) {
@@ -174,6 +178,7 @@ class User extends Api
     /**
      * 修改邮箱
      *
+     * @ApiMethod (POST)
      * @param string $email   邮箱
      * @param string $captcha 验证码
      */
@@ -181,7 +186,7 @@ class User extends Api
     {
         $user = $this->auth->getUser();
         $email = $this->request->post('email');
-        $captcha = $this->request->request('captcha');
+        $captcha = $this->request->post('captcha');
         if (!$email || !$captcha) {
             $this->error(__('Invalid parameters'));
         }
@@ -208,14 +213,15 @@ class User extends Api
     /**
      * 修改手机号
      *
+     * @ApiMethod (POST)
      * @param string $mobile   手机号
      * @param string $captcha 验证码
      */
     public function changemobile()
     {
         $user = $this->auth->getUser();
-        $mobile = $this->request->request('mobile');
-        $captcha = $this->request->request('captcha');
+        $mobile = $this->request->post('mobile');
+        $captcha = $this->request->post('captcha');
         if (!$mobile || !$captcha) {
             $this->error(__('Invalid parameters'));
         }
@@ -242,14 +248,15 @@ class User extends Api
     /**
      * 第三方登录
      *
+     * @ApiMethod (POST)
      * @param string $platform 平台名称
      * @param string $code     Code码
      */
     public function third()
     {
         $url = url('user/index');
-        $platform = $this->request->request("platform");
-        $code = $this->request->request("code");
+        $platform = $this->request->post("platform");
+        $code = $this->request->post("code");
         $config = get_addon_config('third');
         if (!$config || !isset($config[$platform])) {
             $this->error(__('Invalid parameters'));
@@ -273,17 +280,18 @@ class User extends Api
     /**
      * 重置密码
      *
+     * @ApiMethod (POST)
      * @param string $mobile      手机号
      * @param string $newpassword 新密码
      * @param string $captcha     验证码
      */
     public function resetpwd()
     {
-        $type = $this->request->request("type");
-        $mobile = $this->request->request("mobile");
-        $email = $this->request->request("email");
-        $newpassword = $this->request->request("newpassword");
-        $captcha = $this->request->request("captcha");
+        $type = $this->request->post("type");
+        $mobile = $this->request->post("mobile");
+        $email = $this->request->post("email");
+        $newpassword = $this->request->post("newpassword");
+        $captcha = $this->request->post("captcha");
         if (!$newpassword || !$captcha) {
             $this->error(__('Invalid parameters'));
         }

+ 8 - 0
application/api/controller/Validate.php

@@ -22,6 +22,7 @@ class Validate extends Api
     /**
      * 检测邮箱
      *
+     * @ApiMethod (POST)
      * @param string $email 邮箱
      * @param string $id    排除会员ID
      */
@@ -39,6 +40,7 @@ class Validate extends Api
     /**
      * 检测用户名
      *
+     * @ApiMethod (POST)
      * @param string $username 用户名
      * @param string $id       排除会员ID
      */
@@ -56,6 +58,7 @@ class Validate extends Api
     /**
      * 检测昵称
      *
+     * @ApiMethod (POST)
      * @param string $nickname 昵称
      * @param string $id       排除会员ID
      */
@@ -73,6 +76,7 @@ class Validate extends Api
     /**
      * 检测手机
      *
+     * @ApiMethod (POST)
      * @param string $mobile 手机号
      * @param string $id     排除会员ID
      */
@@ -90,6 +94,7 @@ class Validate extends Api
     /**
      * 检测手机
      *
+     * @ApiMethod (POST)
      * @param string $mobile 手机号
      */
     public function check_mobile_exist()
@@ -105,6 +110,7 @@ class Validate extends Api
     /**
      * 检测邮箱
      *
+     * @ApiMethod (POST)
      * @param string $mobile 邮箱
      */
     public function check_email_exist()
@@ -120,6 +126,7 @@ class Validate extends Api
     /**
      * 检测手机验证码
      *
+     * @ApiMethod (POST)
      * @param string $mobile  手机号
      * @param string $captcha 验证码
      * @param string $event   事件
@@ -138,6 +145,7 @@ class Validate extends Api
     /**
      * 检测邮箱验证码
      *
+     * @ApiMethod (POST)
      * @param string $email   邮箱
      * @param string $captcha 验证码
      * @param string $event   事件

+ 41 - 41
public/api.html

@@ -1119,7 +1119,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-6">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion6" href="#collapseOne6"> 发送验证码 <span class="text-muted">/api/ems/send</span></a>
                         </h4>
                     </div>
@@ -1208,7 +1208,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/send" method="get" name="form6" id="form6">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/send" method="POST" name="form6" id="form6">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="email">email</label>
                                                             <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@@ -1260,7 +1260,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-7">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion7" href="#collapseOne7"> 检测验证码 <span class="text-muted">/api/ems/check</span></a>
                         </h4>
                     </div>
@@ -1355,7 +1355,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/check" method="get" name="form7" id="form7">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/check" method="POST" name="form7" id="form7">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="email">email</label>
                                                             <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@@ -1528,7 +1528,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-9">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 发送验证码 <span class="text-muted">/api/sms/send</span></a>
                         </h4>
                     </div>
@@ -1617,7 +1617,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/send" method="get" name="form9" id="form9">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/send" method="POST" name="form9" id="form9">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -1669,7 +1669,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-10">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 检测验证码 <span class="text-muted">/api/sms/check</span></a>
                         </h4>
                     </div>
@@ -1764,7 +1764,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/check" method="get" name="form10" id="form10">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/check" method="POST" name="form10" id="form10">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -2163,7 +2163,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-14">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 会员登录 <span class="text-muted">/api/user/login</span></a>
                         </h4>
                     </div>
@@ -2252,7 +2252,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="get" name="form14" id="form14">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form14" id="form14">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="account">account</label>
                                                             <input type="string" class="form-control input-sm" id="account" required placeholder="账号" name="account">
@@ -2304,7 +2304,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-15">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> 手机验证码登录 <span class="text-muted">/api/user/mobilelogin</span></a>
                         </h4>
                     </div>
@@ -2393,7 +2393,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mobilelogin" method="get" name="form15" id="form15">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mobilelogin" method="POST" name="form15" id="form15">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -2445,7 +2445,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-16">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> 注册会员 <span class="text-muted">/api/user/register</span></a>
                         </h4>
                     </div>
@@ -2552,7 +2552,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/register" method="get" name="form16" id="form16">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/register" method="POST" name="form16" id="form16">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="username">username</label>
                                                             <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
@@ -2729,7 +2729,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-18">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> 修改会员个人信息 <span class="text-muted">/api/user/profile</span></a>
                         </h4>
                     </div>
@@ -2830,7 +2830,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/profile" method="get" name="form18" id="form18">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/profile" method="POST" name="form18" id="form18">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="avatar">avatar</label>
                                                             <input type="string" class="form-control input-sm" id="avatar" required placeholder="头像地址" name="avatar">
@@ -2890,7 +2890,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-19">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion19" href="#collapseOne19"> 修改邮箱 <span class="text-muted">/api/user/changeemail</span></a>
                         </h4>
                     </div>
@@ -2979,7 +2979,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changeemail" method="get" name="form19" id="form19">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changeemail" method="POST" name="form19" id="form19">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="email">email</label>
                                                             <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@@ -3031,7 +3031,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-20">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 修改手机号 <span class="text-muted">/api/user/changemobile</span></a>
                         </h4>
                     </div>
@@ -3120,7 +3120,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changemobile" method="get" name="form20" id="form20">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changemobile" method="POST" name="form20" id="form20">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -3172,7 +3172,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-21">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 第三方登录 <span class="text-muted">/api/user/third</span></a>
                         </h4>
                     </div>
@@ -3261,7 +3261,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/third" method="get" name="form21" id="form21">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/third" method="POST" name="form21" id="form21">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="platform">platform</label>
                                                             <input type="string" class="form-control input-sm" id="platform" required placeholder="平台名称" name="platform">
@@ -3313,7 +3313,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-22">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 重置密码 <span class="text-muted">/api/user/resetpwd</span></a>
                         </h4>
                     </div>
@@ -3408,7 +3408,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/resetpwd" method="get" name="form22" id="form22">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/resetpwd" method="POST" name="form22" id="form22">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -3466,7 +3466,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-23">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion23" href="#collapseOne23"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a>
                         </h4>
                     </div>
@@ -3555,7 +3555,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="get" name="form23" id="form23">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="POST" name="form23" id="form23">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="email">email</label>
                                                             <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@@ -3607,7 +3607,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-24">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion24" href="#collapseOne24"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a>
                         </h4>
                     </div>
@@ -3696,7 +3696,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="get" name="form24" id="form24">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="POST" name="form24" id="form24">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="username">username</label>
                                                             <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
@@ -3748,7 +3748,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-25">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 检测昵称 <span class="text-muted">/api/validate/check_nickname_available</span></a>
                         </h4>
                     </div>
@@ -3837,7 +3837,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="get" name="form25" id="form25">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="POST" name="form25" id="form25">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="nickname">nickname</label>
                                                             <input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname">
@@ -3889,7 +3889,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-26">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a>
                         </h4>
                     </div>
@@ -3978,7 +3978,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="get" name="form26" id="form26">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="POST" name="form26" id="form26">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -4030,7 +4030,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-27">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a>
                         </h4>
                     </div>
@@ -4113,7 +4113,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="get" name="form27" id="form27">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="POST" name="form27" id="form27">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -4161,7 +4161,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-28">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a>
                         </h4>
                     </div>
@@ -4244,7 +4244,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="get" name="form28" id="form28">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="POST" name="form28" id="form28">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="邮箱" name="mobile">
@@ -4292,7 +4292,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-29">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a>
                         </h4>
                     </div>
@@ -4387,7 +4387,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="get" name="form29" id="form29">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="POST" name="form29" id="form29">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="mobile">mobile</label>
                                                             <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@@ -4443,7 +4443,7 @@
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-30">
                         <h4 class="panel-title">
-                            <span class="label label-success">GET</span>
+                            <span class="label label-primary">POST</span>
                             <a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a>
                         </h4>
                     </div>
@@ -4538,7 +4538,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="get" name="form30" id="form30">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="POST" name="form30" id="form30">
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="email">email</label>
                                                             <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@@ -4600,7 +4600,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2020-12-21 11:39:26 <a href="./" target="_blank">我的网站</a>
+                    Generated on 2021-06-08 17:27:40 <a href="./" target="_blank">我的网站</a>
                 </div>
             </div>