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

职位开关

... ... @@ -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
... ...
此 diff 太大无法显示。