...
|
...
|
@@ -202,9 +202,8 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (用户协议)
|
|
|
* @ApiTitle (隐私政策)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiReturn ({"code":状态码,
|
|
|
"msg":"提示信息"
|
|
|
"time": "时间戳",
|
...
|
...
|
@@ -213,7 +212,7 @@ class User extends Api |
|
|
*/
|
|
|
public function getPolicy()
|
|
|
{
|
|
|
$data = Config::get('site.privacy_policy');
|
|
|
$data = Config::get('site')['privacy_policy'];
|
|
|
if (!$data) {
|
|
|
$this->error('暂无内容', ['status' => 2]);
|
|
|
}
|
...
|
...
|
@@ -221,6 +220,7 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 退出登录
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
|