xieruidong 2 years ago
parent
commit
8ccc956417
2 changed files with 22 additions and 3 deletions
  1. 1 0
      application/api/controller/mall/Goods.php
  2. 21 3
      public/api.html

+ 1 - 0
application/api/controller/mall/Goods.php

@@ -117,6 +117,7 @@ class Goods extends Api
     }
     /**
      * 获取支架商品
+     * @ApiParams (name=sku_id,description=规格ID)
      * @ApiReturnParams (name=sku_id,description=规格ID,如果直接下单需要)
      */
     public function zj_goods(){

+ 21 - 3
public/api.html

@@ -12571,7 +12571,24 @@
                                     <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>sku_id</td>
+                                                        <td>string</td>
+                                                        <td>是</td>
+                                                        <td>规格ID,如果直接下单需要</td>
+                                                    </tr>
+                                                                                                    </tbody>
+                                            </table>
                                                                                     </div>
                                     </div>
                                     <div class="panel panel-default">
@@ -12593,7 +12610,8 @@
                                                 <div class="panel-body">
                                                     <form enctype="application/x-www-form-urlencoded" role="form" action="/api/mall.goods/zj_goods" method="get" name="form22" id="form22">
                                                                                                                 <div class="form-group">
-                                                            无
+                                                            <label class="control-label" for="sku_id">sku_id</label>
+                                                            <input type="string" class="form-control input-sm" id="sku_id" required placeholder="规格ID,如果直接下单需要" name="sku_id">
                                                         </div>
                                                                                                                 <div class="form-group form-group-submit">
                                                             <button type="submit" class="btn btn-success send" rel="22">提交</button>
@@ -14638,7 +14656,7 @@
 
                 </div>
                 <div class="col-md-6" align="right">
-                    Generated on 2022-09-29 14:27:04 <a href="./" target="_blank">后台管理</a>
+                    Generated on 2022-09-29 15:09:00 <a href="./" target="_blank">后台管理</a>
                 </div>
             </div>