qifengquan 1 рік тому
батько
коміт
16489765c5
3 змінених файлів з 431 додано та 277 видалено
  1. 10 62
      application/api/controller/Pricing.php
  2. 71 0
      application/api/controller/User.php
  3. 350 215
      public/api.html

+ 10 - 62
application/api/controller/Pricing.php

@@ -131,70 +131,18 @@ class Pricing extends Api
         }
     }
     /**
-     * 申请开票
+     * 删除购物车
      * @ApiMethod ("POST")
-     * @ApiParams (name="order_no",description="订单编号")
-     * @ApiParams (name="invoice_type",description="发票类型 1普通发票2增值税发票")
-     * @ApiParams (name="invoice_shape",description="发票形式 1纸质发票2电子发票")
-     * @ApiParams (name="type",description="类型 1个人2企业")
-     * @ApiParams (name="name",description="抬头名称")
-     * @ApiParams (name="duty_paragraph",description="单位税号")
-     * @ApiParams (name="address",description="注册地址")
-     * @ApiParams (name="company_phone",description="公司电话")
-     * @ApiParams (name="bank",description="银行")
-     * @ApiParams (name="compellation",description="姓名")
-     * @ApiParams (name="phone",description="个人电话")
-     * @ApiParams (name="location",description="所在地")
-     * @ApiParams (name="postcode",description="邮编")
-     * @ApiParams (name="emial",description="邮箱")
+     * @ApiParams (name="id",description="记录id")
      */
-    public function make_ticket(){
-        $uid = $this->auth->id;
-        if(input('type')==1) {
-            $rule = [
-                'cp_order_no'=>'require',
-                'invoice_type'=>'require',
-                'invoice_shape'=>'require',
-                'type'=>'require',
-                'name'=>'require',
-                'compellation'=>'require',
-                'phone'=>'require',
-                'location'=>'require',
-                'postcode'=>'require',
-                'emial'=>'require',
-            ];
-        }else if(input('type')==2){
-            $rule = [
-                'cp_order_no'=>'require',
-                'invoice_type'=>'require',
-                'invoice_shape'=>'require',
-                'type'=>'require',
-                'name'=>'require',
-                'duty_paragraph'=>'require',
-                'address'=>'require',
-                'company_phone'=>'require',
-                'bank'=>'require',
-                'compellation'=>'require',
-                'phone'=>'require',
-                'location'=>'require',
-            ];
-        }
-        $data = $this->_validate($rule);
-        $data['uid'] = $uid;
-        $data['order_no'] = pay_no($uid);
-        if(!empty(Order::where('order_no', $data['order_no'])->value('billing_status'))){
-            $this->error('订单已申请发票');
-        }
-        DB::startTrans();
-        try {
-            $OrderInvoice = OrderInvoice::create($data);
-            Order::where('order_no', $data['order_no'])->update(['billing_status' => 1]);
-            Db::commit();
-            $this->success('申请成功',$OrderInvoice);
-        }catch (Exception $exception){
-            DB::rollback();
-            $this->error($exception);
-            return false;
+    public function del_cart(){
+        $cart = Cart::get(['user_id'=>$this->auth->id,'id'=>input('id')]);
+        if (!$cart){
+            $this->error('记录不存在');
+        }else{
+            $cart->delete();
+            $this->success('删除成功');
         }
     }
+
 }

+ 71 - 0
application/api/controller/User.php

@@ -5,8 +5,12 @@ namespace app\api\controller;
 use app\common\controller\Api;
 use app\common\library\Ems;
 use app\common\library\Sms;
+use app\common\model\Order;
+use app\common\model\OrderInvoice;
 use fast\Random;
 use think\Config;
+use think\Db;
+use think\Exception;
 use think\Validate;
 
 /**
@@ -423,4 +427,71 @@ class User extends Api
             $this->error($this->auth->getError());
         }
     }
+    /**
+     * 申请开票
+     * @ApiMethod ("POST")
+     * @ApiParams (name="order_no",description="订单编号")
+     * @ApiParams (name="invoice_type",description="发票类型 1普通发票2增值税发票")
+     * @ApiParams (name="invoice_shape",description="发票形式 1纸质发票2电子发票")
+     * @ApiParams (name="type",description="类型 1个人2企业")
+     * @ApiParams (name="name",description="抬头名称")
+     * @ApiParams (name="duty_paragraph",description="单位税号")
+     * @ApiParams (name="address",description="注册地址")
+     * @ApiParams (name="company_phone",description="公司电话")
+     * @ApiParams (name="bank",description="银行")
+     * @ApiParams (name="compellation",description="姓名")
+     * @ApiParams (name="phone",description="个人电话")
+     * @ApiParams (name="location",description="所在地")
+     * @ApiParams (name="postcode",description="邮编")
+     * @ApiParams (name="emial",description="邮箱")
+     */
+    public function make_ticket(){
+        $uid = $this->auth->id;
+        if(input('type')==1) {
+            $rule = [
+                'cp_order_no'=>'require',
+                'invoice_type'=>'require',
+                'invoice_shape'=>'require',
+                'type'=>'require',
+                'name'=>'require',
+                'compellation'=>'require',
+                'phone'=>'require',
+                'location'=>'require',
+                'postcode'=>'require',
+                'emial'=>'require',
+            ];
+        }else if(input('type')==2){
+            $rule = [
+                'cp_order_no'=>'require',
+                'invoice_type'=>'require',
+                'invoice_shape'=>'require',
+                'type'=>'require',
+                'name'=>'require',
+                'duty_paragraph'=>'require',
+                'address'=>'require',
+                'company_phone'=>'require',
+                'bank'=>'require',
+                'compellation'=>'require',
+                'phone'=>'require',
+                'location'=>'require',
+            ];
+        }
+        $data = $this->_validate($rule);
+        $data['uid'] = $uid;
+        $data['order_no'] = pay_no($uid);
+        if(!empty(Order::where('order_no', $data['order_no'])->value('billing_status'))){
+            $this->error('订单已申请发票');
+        }
+        DB::startTrans();
+        try {
+            $OrderInvoice = OrderInvoice::create($data);
+            Order::where('order_no', $data['order_no'])->update(['billing_status' => 1]);
+            Db::commit();
+            $this->success('申请成功',$OrderInvoice);
+        }catch (Exception $exception){
+            DB::rollback();
+            $this->error($exception);
+            return false;
+        }
+    }
 }

+ 350 - 215
public/api.html

@@ -275,7 +275,7 @@
                                                                     <span class="label label-success pull-right noneedlogin">登</span>
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="32" class="list-group-item">申请开票                            <span class="tag">
+                                                <a href="javascript:;" data-id="32" class="list-group-item">删除购物车                            <span class="tag">
                                                                     <span class="label label-success pull-right noneedlogin">登</span>
                                                             </span>
                         </a>
@@ -360,31 +360,35 @@
                                                                     <span class="label label-success pull-right noneedlogin">登</span>
                                                             </span>
                         </a>
+                                                <a href="javascript:;" data-id="53" class="list-group-item">申请开票                            <span class="tag">
+                                                                    <span class="label label-success pull-right noneedlogin">登</span>
+                                                            </span>
+                        </a>
                                             </div>
                                         <a href="#验证接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">验证接口  <i class="fa fa-caret-down"></i></a>
                     <div class="child collapse" id="验证接口">
-                                                <a href="javascript:;" data-id="53" class="list-group-item">检测邮箱                            <span class="tag">
+                                                <a href="javascript:;" data-id="54" class="list-group-item">检测邮箱                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="54" class="list-group-item">检测用户名                            <span class="tag">
+                                                <a href="javascript:;" data-id="55" class="list-group-item">检测用户名                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="55" class="list-group-item">检测昵称                            <span class="tag">
+                                                <a href="javascript:;" data-id="56" class="list-group-item">检测昵称                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="56" class="list-group-item">检测手机                            <span class="tag">
+                                                <a href="javascript:;" data-id="57" class="list-group-item">检测手机                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="57" class="list-group-item">检测手机                            <span class="tag">
+                                                <a href="javascript:;" data-id="58" class="list-group-item">检测手机                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="58" class="list-group-item">检测邮箱                            <span class="tag">
+                                                <a href="javascript:;" data-id="59" class="list-group-item">检测邮箱                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="59" class="list-group-item">检测手机验证码                            <span class="tag">
+                                                <a href="javascript:;" data-id="60" class="list-group-item">检测手机验证码                            <span class="tag">
                                                             </span>
                         </a>
-                                                <a href="javascript:;" data-id="60" class="list-group-item">检测邮箱验证码                            <span class="tag">
+                                                <a href="javascript:;" data-id="61" class="list-group-item">检测邮箱验证码                            <span class="tag">
                                                             </span>
                         </a>
                                             </div>
@@ -4723,7 +4727,7 @@
                     <div class="panel-heading" id="heading-32">
                         <h4 class="panel-title">
                             <span class="label label-success">"POST"</span>
-                            <a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 申请开票 <span class="text-muted">/api/pricing/make_ticket</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 删除购物车 <span class="text-muted">/api/pricing/del_cart</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne32" class="panel-collapse collapse">
@@ -4741,7 +4745,7 @@
 
                                 <div class="tab-pane active" id="info32">
                                     <div class="well">
-                                        申请开票                                    </div>
+                                        删除购物车                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
                                         <div class="panel-body">
@@ -4779,88 +4783,10 @@
                                                 </thead>
                                                 <tbody>
                                                                                                         <tr>
-                                                        <td>order_no</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>订单编号</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>invoice_type</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>发票类型 1普通发票2增值税发票</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>invoice_shape</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>发票形式 1纸质发票2电子发票</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>type</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>类型 1个人2企业</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>name</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>抬头名称</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>duty_paragraph</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>单位税号</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>address</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>注册地址</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>company_phone</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>公司电话</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>bank</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>银行</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>compellation</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>姓名</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>phone</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>个人电话</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>location</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>所在地</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>postcode</td>
+                                                        <td>id</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>邮编</td>
-                                                    </tr>
-                                                                                                        <tr>
-                                                        <td>emial</td>
-                                                        <td>string</td>
-                                                        <td>是</td>
-                                                        <td>邮箱</td>
+                                                        <td>记录id</td>
                                                     </tr>
                                                                                                     </tbody>
                                             </table>
@@ -4883,62 +4809,10 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/pricing/make_ticket" method=""POST"" name="form32" id="form32">
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="order_no">order_no</label>
-                                                            <input type="string" class="form-control input-sm" id="order_no" required placeholder="订单编号" name="order_no">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="invoice_type">invoice_type</label>
-                                                            <input type="string" class="form-control input-sm" id="invoice_type" required placeholder="发票类型 1普通发票2增值税发票" name="invoice_type">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="invoice_shape">invoice_shape</label>
-                                                            <input type="string" class="form-control input-sm" id="invoice_shape" required placeholder="发票形式 1纸质发票2电子发票" name="invoice_shape">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="type">type</label>
-                                                            <input type="string" class="form-control input-sm" id="type" required placeholder="类型 1个人2企业" name="type">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="name">name</label>
-                                                            <input type="string" class="form-control input-sm" id="name" required placeholder="抬头名称" name="name">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="duty_paragraph">duty_paragraph</label>
-                                                            <input type="string" class="form-control input-sm" id="duty_paragraph" required placeholder="单位税号" name="duty_paragraph">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="address">address</label>
-                                                            <input type="string" class="form-control input-sm" id="address" required placeholder="注册地址" name="address">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="company_phone">company_phone</label>
-                                                            <input type="string" class="form-control input-sm" id="company_phone" required placeholder="公司电话" name="company_phone">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="bank">bank</label>
-                                                            <input type="string" class="form-control input-sm" id="bank" required placeholder="银行" name="bank">
-                                                        </div>
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/pricing/del_cart" method=""POST"" name="form32" id="form32">
                                                                                                                 <div class="form-group">
-                                                            <label class="control-label" for="compellation">compellation</label>
-                                                            <input type="string" class="form-control input-sm" id="compellation" required placeholder="姓名" name="compellation">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="phone">phone</label>
-                                                            <input type="string" class="form-control input-sm" id="phone" required placeholder="个人电话" name="phone">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="location">location</label>
-                                                            <input type="string" class="form-control input-sm" id="location" required placeholder="所在地" name="location">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="postcode">postcode</label>
-                                                            <input type="string" class="form-control input-sm" id="postcode" required placeholder="邮编" name="postcode">
-                                                        </div>
-                                                                                                                <div class="form-group">
-                                                            <label class="control-label" for="emial">emial</label>
-                                                            <input type="string" class="form-control input-sm" id="emial" required placeholder="邮箱" name="emial">
+                                                            <label class="control-label" for="id">id</label>
+                                                            <input type="string" class="form-control input-sm" id="id" required placeholder="记录id" name="id">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="32">提交</button>
@@ -7648,13 +7522,11 @@
                         </div>
                     </div>
                 </div>
-                                <h2>验证接口</h2>
-                <hr>
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-53">
                         <h4 class="panel-title">
-                            <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion53" href="#collapseOne53"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a>
+                            <span class="label label-success">"POST"</span>
+                            <a data-toggle="collapse" data-parent="#accordion53" href="#collapseOne53"> 申请开票 <span class="text-muted">/api/user/make_ticket</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne53" class="panel-collapse collapse">
@@ -7672,7 +7544,7 @@
 
                                 <div class="tab-pane active" id="info53">
                                     <div class="well">
-                                        检测邮箱                                    </div>
+                                        申请开票                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
                                         <div class="panel-body">
@@ -7680,7 +7552,7 @@
                                                 <tbody>
                                                 <tr>
                                                     <td>登录</td>
-                                                    <td></td>
+                                                    <td></td>
                                                 </tr>
                                                 <tr>
                                                     <td>鉴权</td>
@@ -7710,16 +7582,88 @@
                                                 </thead>
                                                 <tbody>
                                                                                                         <tr>
-                                                        <td>email</td>
+                                                        <td>order_no</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>邮箱</td>
+                                                        <td>订单编号</td>
                                                     </tr>
                                                                                                         <tr>
-                                                        <td>id</td>
+                                                        <td>invoice_type</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>排除会员ID</td>
+                                                        <td>发票类型 1普通发票2增值税发票</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>invoice_shape</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>发票形式 1纸质发票2电子发票</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>type</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>类型 1个人2企业</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>name</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>抬头名称</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>duty_paragraph</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>单位税号</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>address</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>注册地址</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>company_phone</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>公司电话</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>bank</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>银行</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>compellation</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>姓名</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>phone</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>个人电话</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>location</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>所在地</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>postcode</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>邮编</td>
+                                                    </tr>
+                                                                                                        <tr>
+                                                        <td>emial</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>邮箱</td>
                                                     </tr>
                                                                                                     </tbody>
                                             </table>
@@ -7742,14 +7686,62 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="POST" name="form53" id="form53">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/make_ticket" method=""POST"" name="form53" id="form53">
                                                                                                                 <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">
+                                                            <label class="control-label" for="order_no">order_no</label>
+                                                            <input type="string" class="form-control input-sm" id="order_no" required placeholder="订单编号" name="order_no">
                                                         </div>
                                                                                                                 <div class="form-group">
-                                                            <label class="control-label" for="id">id</label>
-                                                            <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id">
+                                                            <label class="control-label" for="invoice_type">invoice_type</label>
+                                                            <input type="string" class="form-control input-sm" id="invoice_type" required placeholder="发票类型 1普通发票2增值税发票" name="invoice_type">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="invoice_shape">invoice_shape</label>
+                                                            <input type="string" class="form-control input-sm" id="invoice_shape" required placeholder="发票形式 1纸质发票2电子发票" name="invoice_shape">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="type">type</label>
+                                                            <input type="string" class="form-control input-sm" id="type" required placeholder="类型 1个人2企业" name="type">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="name">name</label>
+                                                            <input type="string" class="form-control input-sm" id="name" required placeholder="抬头名称" name="name">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="duty_paragraph">duty_paragraph</label>
+                                                            <input type="string" class="form-control input-sm" id="duty_paragraph" required placeholder="单位税号" name="duty_paragraph">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="address">address</label>
+                                                            <input type="string" class="form-control input-sm" id="address" required placeholder="注册地址" name="address">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="company_phone">company_phone</label>
+                                                            <input type="string" class="form-control input-sm" id="company_phone" required placeholder="公司电话" name="company_phone">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="bank">bank</label>
+                                                            <input type="string" class="form-control input-sm" id="bank" required placeholder="银行" name="bank">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="compellation">compellation</label>
+                                                            <input type="string" class="form-control input-sm" id="compellation" required placeholder="姓名" name="compellation">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="phone">phone</label>
+                                                            <input type="string" class="form-control input-sm" id="phone" required placeholder="个人电话" name="phone">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="location">location</label>
+                                                            <input type="string" class="form-control input-sm" id="location" required placeholder="所在地" name="location">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="postcode">postcode</label>
+                                                            <input type="string" class="form-control input-sm" id="postcode" required placeholder="邮编" name="postcode">
+                                                        </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="emial">emial</label>
+                                                            <input type="string" class="form-control input-sm" id="emial" required placeholder="邮箱" name="emial">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="53">提交</button>
@@ -7791,11 +7783,13 @@
                         </div>
                     </div>
                 </div>
+                                <h2>验证接口</h2>
+                <hr>
                                 <div class="panel panel-default">
                     <div class="panel-heading" id="heading-54">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion54" href="#collapseOne54"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion54" href="#collapseOne54"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne54" class="panel-collapse collapse">
@@ -7813,7 +7807,7 @@
 
                                 <div class="tab-pane active" id="info54">
                                     <div class="well">
-                                        检测用户名                                    </div>
+                                        检测邮箱                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
                                         <div class="panel-body">
@@ -7851,10 +7845,10 @@
                                                 </thead>
                                                 <tbody>
                                                                                                         <tr>
-                                                        <td>username</td>
+                                                        <td>email</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>用户名</td>
+                                                        <td>邮箱</td>
                                                     </tr>
                                                                                                         <tr>
                                                         <td>id</td>
@@ -7883,10 +7877,10 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="POST" name="form54" id="form54">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="POST" name="form54" id="form54">
                                                                                                                 <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">
+                                                            <label class="control-label" for="email">email</label>
+                                                            <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
                                                         </div>
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="id">id</label>
@@ -7936,7 +7930,7 @@
                     <div class="panel-heading" id="heading-55">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion55" href="#collapseOne55"> 检测昵称 <span class="text-muted">/api/validate/check_nickname_available</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion55" href="#collapseOne55"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne55" class="panel-collapse collapse">
@@ -7954,7 +7948,7 @@
 
                                 <div class="tab-pane active" id="info55">
                                     <div class="well">
-                                        检测昵称                                    </div>
+                                        检测用户名                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
                                         <div class="panel-body">
@@ -7992,10 +7986,10 @@
                                                 </thead>
                                                 <tbody>
                                                                                                         <tr>
-                                                        <td>nickname</td>
+                                                        <td>username</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>昵称</td>
+                                                        <td>用户名</td>
                                                     </tr>
                                                                                                         <tr>
                                                         <td>id</td>
@@ -8024,10 +8018,10 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="POST" name="form55" id="form55">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="POST" name="form55" id="form55">
                                                                                                                 <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">
+                                                            <label class="control-label" for="username">username</label>
+                                                            <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
                                                         </div>
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="id">id</label>
@@ -8077,7 +8071,7 @@
                     <div class="panel-heading" id="heading-56">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion56" href="#collapseOne56"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion56" href="#collapseOne56"> 检测昵称 <span class="text-muted">/api/validate/check_nickname_available</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne56" class="panel-collapse collapse">
@@ -8095,7 +8089,7 @@
 
                                 <div class="tab-pane active" id="info56">
                                     <div class="well">
-                                        检测手机                                    </div>
+                                        检测昵称                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
                                         <div class="panel-body">
@@ -8133,10 +8127,10 @@
                                                 </thead>
                                                 <tbody>
                                                                                                         <tr>
-                                                        <td>mobile</td>
+                                                        <td>nickname</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>手机号</td>
+                                                        <td>昵称</td>
                                                     </tr>
                                                                                                         <tr>
                                                         <td>id</td>
@@ -8165,10 +8159,10 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="POST" name="form56" id="form56">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="POST" name="form56" id="form56">
                                                                                                                 <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">
+                                                            <label class="control-label" for="nickname">nickname</label>
+                                                            <input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname">
                                                         </div>
                                                                                                                 <div class="form-group">
                                                             <label class="control-label" for="id">id</label>
@@ -8218,7 +8212,7 @@
                     <div class="panel-heading" id="heading-57">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion57" href="#collapseOne57"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion57" href="#collapseOne57"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne57" class="panel-collapse collapse">
@@ -8279,6 +8273,12 @@
                                                         <td>是</td>
                                                         <td>手机号</td>
                                                     </tr>
+                                                                                                        <tr>
+                                                        <td>id</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>排除会员ID</td>
+                                                    </tr>
                                                                                                     </tbody>
                                             </table>
                                                                                     </div>
@@ -8300,11 +8300,15 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="POST" name="form57" id="form57">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="POST" name="form57" id="form57">
                                                                                                                 <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">
                                                         </div>
+                                                                                                                <div class="form-group">
+                                                            <label class="control-label" for="id">id</label>
+                                                            <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id">
+                                                        </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="57">提交</button>
                                                             <button type="reset" class="btn btn-info" rel="57">重置</button>
@@ -8349,7 +8353,7 @@
                     <div class="panel-heading" id="heading-58">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion58" href="#collapseOne58"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion58" href="#collapseOne58"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne58" class="panel-collapse collapse">
@@ -8367,7 +8371,7 @@
 
                                 <div class="tab-pane active" id="info58">
                                     <div class="well">
-                                        检测邮箱                                    </div>
+                                        检测手机                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
                                         <div class="panel-body">
@@ -8408,7 +8412,7 @@
                                                         <td>mobile</td>
                                                         <td>string</td>
                                                         <td>是</td>
-                                                        <td>邮箱</td>
+                                                        <td>手机号</td>
                                                     </tr>
                                                                                                     </tbody>
                                             </table>
@@ -8431,10 +8435,10 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="POST" name="form58" id="form58">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="POST" name="form58" id="form58">
                                                                                                                 <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">
+                                                            <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="58">提交</button>
@@ -8480,7 +8484,7 @@
                     <div class="panel-heading" id="heading-59">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion59" href="#collapseOne59"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion59" href="#collapseOne59"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a>
                         </h4>
                     </div>
                     <div id="collapseOne59" class="panel-collapse collapse">
@@ -8498,6 +8502,137 @@
 
                                 <div class="tab-pane active" id="info59">
                                     <div class="well">
+                                        检测邮箱                                    </div>
+                                    <div class="panel panel-default">
+                                        <div class="panel-heading"><strong>权限</strong></div>
+                                        <div class="panel-body">
+                                            <table class="table table-hover">
+                                                <tbody>
+                                                <tr>
+                                                    <td>登录</td>
+                                                    <td>否</td>
+                                                </tr>
+                                                <tr>
+                                                    <td>鉴权</td>
+                                                    <td>否</td>
+                                                </tr>
+                                                </tbody>
+                                            </table>
+                                        </div>
+                                    </div>
+                                    <div class="panel panel-default">
+                                        <div class="panel-heading"><strong>Headers</strong></div>
+                                        <div class="panel-body">
+                                                                                        无
+                                                                                    </div>
+                                    </div>
+                                    <div class="panel panel-default">
+                                        <div class="panel-heading"><strong>参数</strong></div>
+                                        <div class="panel-body">
+                                                                                        <table class="table table-hover">
+                                                <thead>
+                                                    <tr>
+                                                        <th>名称</th>
+                                                        <th>类型</th>
+                                                        <th>必选</th>
+                                                        <th>描述</th>
+                                                    </tr>
+                                                </thead>
+                                                <tbody>
+                                                                                                        <tr>
+                                                        <td>mobile</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>邮箱</td>
+                                                    </tr>
+                                                                                                    </tbody>
+                                            </table>
+                                                                                    </div>
+                                    </div>
+                                    <div class="panel panel-default">
+                                        <div class="panel-heading"><strong>正文</strong></div>
+                                        <div class="panel-body">
+                                            无                                        </div>
+                                    </div>
+                                </div><!-- #info -->
+
+                                <div class="tab-pane" id="sandbox59">
+                                    <div class="row">
+                                        <div class="col-md-12">
+                                                                                        <div class="panel panel-default">
+                                                <div class="panel-heading"><strong>参数</strong>
+                                                <div class="pull-right">
+                                                    <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
+                                                </div>
+                                                </div>
+                                                <div class="panel-body">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="POST" name="form59" id="form59">
+                                                                                                                <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">
+                                                        </div>
+                                                                                                                <div class="form-group form-group-submit">
+                                                            <button type="submit" class="btn btn-success send" rel="59">提交</button>
+                                                            <button type="reset" class="btn btn-info" rel="59">重置</button>
+                                                        </div>
+                                                    </form>
+                                                </div>
+                                            </div>
+                                            <div class="panel panel-default">
+                                                <div class="panel-heading"><strong>响应输出</strong></div>
+                                                <div class="panel-body">
+                                                    <div class="row">
+                                                        <div class="col-md-12" style="overflow-x:auto">
+                                                            <pre id="response_headers59"></pre>
+                                                            <pre id="response59"></pre>
+                                                        </div>
+                                                    </div>
+                                                </div>
+                                            </div>
+                                            <div class="panel panel-default">
+                                                <div class="panel-heading"><strong>返回参数</strong></div>
+                                                <div class="panel-body">
+                                                                                                        无
+                                                                                                    </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                </div><!-- #sandbox -->
+
+                                <div class="tab-pane" id="sample59">
+                                    <div class="row">
+                                        <div class="col-md-12">
+                                            <pre id="sample_response59">无</pre>
+                                        </div>
+                                    </div>
+                                </div><!-- #sample -->
+
+                            </div><!-- .tab-content -->
+                        </div>
+                    </div>
+                </div>
+                                <div class="panel panel-default">
+                    <div class="panel-heading" id="heading-60">
+                        <h4 class="panel-title">
+                            <span class="label label-primary">POST</span>
+                            <a data-toggle="collapse" data-parent="#accordion60" href="#collapseOne60"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a>
+                        </h4>
+                    </div>
+                    <div id="collapseOne60" class="panel-collapse collapse">
+                        <div class="panel-body">
+
+                            <!-- Nav tabs -->
+                            <ul class="nav nav-tabs" id="doctab60">
+                                <li class="active"><a href="#info60" data-toggle="tab">基础信息</a></li>
+                                <li><a href="#sandbox60" data-toggle="tab">在线测试</a></li>
+                                <li><a href="#sample60" data-toggle="tab">返回示例</a></li>
+                            </ul>
+
+                            <!-- Tab panes -->
+                            <div class="tab-content">
+
+                                <div class="tab-pane active" id="info60">
+                                    <div class="well">
                                         检测手机验证码                                    </div>
                                     <div class="panel panel-default">
                                         <div class="panel-heading"><strong>权限</strong></div>
@@ -8564,7 +8699,7 @@
                                     </div>
                                 </div><!-- #info -->
 
-                                <div class="tab-pane" id="sandbox59">
+                                <div class="tab-pane" id="sandbox60">
                                     <div class="row">
                                         <div class="col-md-12">
                                                                                         <div class="panel panel-default">
@@ -8574,7 +8709,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="POST" name="form59" id="form59">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="POST" name="form60" id="form60">
                                                                                                                 <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">
@@ -8588,8 +8723,8 @@
                                                             <input type="string" class="form-control input-sm" id="event" required placeholder="事件" name="event">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
-                                                            <button type="submit" class="btn btn-success send" rel="59">提交</button>
-                                                            <button type="reset" class="btn btn-info" rel="59">重置</button>
+                                                            <button type="submit" class="btn btn-success send" rel="60">提交</button>
+                                                            <button type="reset" class="btn btn-info" rel="60">重置</button>
                                                         </div>
                                                     </form>
                                                 </div>
@@ -8599,8 +8734,8 @@
                                                 <div class="panel-body">
                                                     <div class="row">
                                                         <div class="col-md-12" style="overflow-x:auto">
-                                                            <pre id="response_headers59"></pre>
-                                                            <pre id="response59"></pre>
+                                                            <pre id="response_headers60"></pre>
+                                                            <pre id="response60"></pre>
                                                         </div>
                                                     </div>
                                                 </div>
@@ -8615,10 +8750,10 @@
                                     </div>
                                 </div><!-- #sandbox -->
 
-                                <div class="tab-pane" id="sample59">
+                                <div class="tab-pane" id="sample60">
                                     <div class="row">
                                         <div class="col-md-12">
-                                            <pre id="sample_response59">无</pre>
+                                            <pre id="sample_response60">无</pre>
                                         </div>
                                     </div>
                                 </div><!-- #sample -->
@@ -8628,26 +8763,26 @@
                     </div>
                 </div>
                                 <div class="panel panel-default">
-                    <div class="panel-heading" id="heading-60">
+                    <div class="panel-heading" id="heading-61">
                         <h4 class="panel-title">
                             <span class="label label-primary">POST</span>
-                            <a data-toggle="collapse" data-parent="#accordion60" href="#collapseOne60"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a>
+                            <a data-toggle="collapse" data-parent="#accordion61" href="#collapseOne61"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a>
                         </h4>
                     </div>
-                    <div id="collapseOne60" class="panel-collapse collapse">
+                    <div id="collapseOne61" class="panel-collapse collapse">
                         <div class="panel-body">
 
                             <!-- Nav tabs -->
-                            <ul class="nav nav-tabs" id="doctab60">
-                                <li class="active"><a href="#info60" data-toggle="tab">基础信息</a></li>
-                                <li><a href="#sandbox60" data-toggle="tab">在线测试</a></li>
-                                <li><a href="#sample60" data-toggle="tab">返回示例</a></li>
+                            <ul class="nav nav-tabs" id="doctab61">
+                                <li class="active"><a href="#info61" data-toggle="tab">基础信息</a></li>
+                                <li><a href="#sandbox61" data-toggle="tab">在线测试</a></li>
+                                <li><a href="#sample61" data-toggle="tab">返回示例</a></li>
                             </ul>
 
                             <!-- Tab panes -->
                             <div class="tab-content">
 
-                                <div class="tab-pane active" id="info60">
+                                <div class="tab-pane active" id="info61">
                                     <div class="well">
                                         检测邮箱验证码                                    </div>
                                     <div class="panel panel-default">
@@ -8715,7 +8850,7 @@
                                     </div>
                                 </div><!-- #info -->
 
-                                <div class="tab-pane" id="sandbox60">
+                                <div class="tab-pane" id="sandbox61">
                                     <div class="row">
                                         <div class="col-md-12">
                                                                                         <div class="panel panel-default">
@@ -8725,7 +8860,7 @@
                                                 </div>
                                                 </div>
                                                 <div class="panel-body">
-                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="POST" name="form60" id="form60">
+                                                    <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="POST" name="form61" id="form61">
                                                                                                                 <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">
@@ -8739,8 +8874,8 @@
                                                             <input type="string" class="form-control input-sm" id="event" required placeholder="事件" name="event">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
-                                                            <button type="submit" class="btn btn-success send" rel="60">提交</button>
-                                                            <button type="reset" class="btn btn-info" rel="60">重置</button>
+                                                            <button type="submit" class="btn btn-success send" rel="61">提交</button>
+                                                            <button type="reset" class="btn btn-info" rel="61">重置</button>
                                                         </div>
                                                     </form>
                                                 </div>
@@ -8750,8 +8885,8 @@
                                                 <div class="panel-body">
                                                     <div class="row">
                                                         <div class="col-md-12" style="overflow-x:auto">
-                                                            <pre id="response_headers60"></pre>
-                                                            <pre id="response60"></pre>
+                                                            <pre id="response_headers61"></pre>
+                                                            <pre id="response61"></pre>
                                                         </div>
                                                     </div>
                                                 </div>
@@ -8766,10 +8901,10 @@
                                     </div>
                                 </div><!-- #sandbox -->
 
-                                <div class="tab-pane" id="sample60">
+                                <div class="tab-pane" id="sample61">
                                     <div class="row">
                                         <div class="col-md-12">
-                                            <pre id="sample_response60">无</pre>
+                                            <pre id="sample_response61">无</pre>
                                         </div>
                                     </div>
                                 </div><!-- #sample -->
@@ -8787,7 +8922,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2023-05-19 09:47:47 <a href="./" target="_blank">宙斯维创</a>
+                    Generated on 2023-05-19 10:02:18 <a href="./" target="_blank">宙斯维创</a>
                 </div>
             </div>