...
|
...
|
@@ -17,7 +17,7 @@ use think\Db; |
|
|
*/
|
|
|
class Index extends Api
|
|
|
{
|
|
|
protected $noNeedLogin = ['index','examList','newsList','newsInfo','startupPage','agreement'];
|
|
|
protected $noNeedLogin = ['index','examList','newsList','newsInfo','startupPage','agreement','switchJob'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
public function _initialize()
|
...
|
...
|
@@ -319,4 +319,23 @@ class Index extends Api |
|
|
$content = Db::name('mobile_config')->where('id',1)->value('agreement');
|
|
|
$this->success('成功', $content);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (职位开关)
|
|
|
* @ApiSummary (职位开关)
|
|
|
* @ApiMethod (POST)
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1599017563",
|
|
|
"data": {
|
|
|
"is_on": 0 //是否开启职位:0=否,1=是
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function switchJob()
|
|
|
{
|
|
|
$this->success('成功', ['is_on' => 0]);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|