作者 jinglong
1 个管道 的构建 通过 耗费 5 秒

修改新人特惠接口

... ... @@ -10,7 +10,7 @@ use think\Validate;
*/
class News extends Api
{
protected $noNeedLogin = [];
protected $noNeedLogin = ['newsGoodsList'];
protected $noNeedRight = ['*'];
protected $uid = '';
public function _initialize()
... ... @@ -24,7 +24,6 @@ class News extends Api
* @ApiSummary (新人特惠商品列表)
* @ApiMethod (GET)
* @ApiRoute (/api/news/newsGoodsList)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="page", type="inter", required=true, description="分页页码")
*
... ...
... ... @@ -2465,24 +2465,7 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</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>token</td>
<td>string</td>
<td></td>
<td>请求的Token</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
... ... @@ -2519,17 +2502,6 @@
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
<div class="headers">
<div class="form-group">
<label class="control-label" for="token">token</label>
<input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token">
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/news/newsGoodsList" method="GET" name="form15" id="form15">
... ... @@ -3770,7 +3742,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2019-12-02 17:45:02 </div>
Generated on 2019-12-03 09:08:11 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...