...
|
...
|
@@ -8,6 +8,7 @@ use app\api\model\StudyScore; |
|
|
use app\common\controller\Api;
|
|
|
use app\common\library\Auth;
|
|
|
use app\common\model\ScoreLog;
|
|
|
use think\Config;
|
|
|
use think\Db;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -20,6 +21,23 @@ class Index extends Api |
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (获取状态)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiReturn ({"code":状态码,
|
|
|
"msg":"提示信息"
|
|
|
"time": "时间戳",
|
|
|
"data": {
|
|
|
"0": '个人排行榜已隐藏',
|
|
|
"1": "个人排行榜已开启",
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function getStatus(){
|
|
|
$config = Config::get('site')['status'];
|
|
|
$this->success('是否隐藏个人排行榜',$config);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (首页)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiReturn ({"code":状态码,
|
...
|
...
|
|