作者 何书鹏
1 个管道 的构建 通过 耗费 2 秒

职位开关

... ... @@ -17,7 +17,7 @@ use think\Db;
*/
class Index extends Api
{
protected $noNeedLogin = ['index','examList','newsList','newsInfo','startupPage','agreement','switchJob'];
protected $noNeedLogin = ['index','examList','newsList','newsInfo','startupPage','agreement','jobSwitch'];
protected $noNeedRight = ['*'];
public function _initialize()
... ... @@ -334,7 +334,7 @@ class Index extends Api
}
})
*/
public function switchJob()
public function jobSwitch()
{
$this->success('成功', ['is_on' => 0]);
}
... ...
... ... @@ -1310,7 +1310,7 @@
<div class="panel-heading" id="heading-67">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion67" href="#collapseOne67"> 职位开关 <span class="text-muted">/mobile/index/switchJob</span></a>
<a data-toggle="collapse" data-parent="#accordion67" href="#collapseOne67"> 职位开关 <span class="text-muted">/mobile/index/jobSwitch</span></a>
</h4>
</div>
<div id="collapseOne67" class="panel-collapse collapse">
... ... @@ -1354,7 +1354,7 @@
<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="/mobile/index/switchJob" method="POST" name="form67" id="form67">
<form enctype="application/x-www-form-urlencoded" role="form" action="/mobile/index/jobSwitch" method="POST" name="form67" id="form67">
<div class="form-group">
</div>
... ... @@ -23182,7 +23182,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2021-01-27 15:41:42 </div>
Generated on 2021-01-27 15:45:20 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">企智帮</a>
</div>
... ...