...
|
...
|
@@ -37,7 +37,7 @@ use Endroid\QrCode\QrCode; |
|
|
*/
|
|
|
class User extends Api
|
|
|
{
|
|
|
protected $noNeedLogin = ['registerUser','agreementUser','registerCompany','agreementCompany','login','resetpwd','exam','noLogin','problemList','problemInfo'];
|
|
|
protected $noNeedLogin = ['registerUser','agreementUser','registerCompany','agreementCompany','agreementPrivacy','login','resetpwd','exam','noLogin','problemList','problemInfo'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
public function _initialize()
|
...
|
...
|
@@ -213,6 +213,25 @@ class User extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (93)
|
|
|
* @ApiTitle (隐私协议)
|
|
|
* @ApiSummary (隐私协议)
|
|
|
* @ApiMethod (POST)
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1599017563",
|
|
|
"data": "隐私协议内容" //协议内容
|
|
|
})
|
|
|
*/
|
|
|
public function agreementPrivacy()
|
|
|
{
|
|
|
$content = Db::name('mobile_config')->where('id',1)->value('privacy_agreement');
|
|
|
$this->success('成功', $content);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiWeigh (91)
|
|
|
* @ApiTitle (登录)
|
|
|
* @ApiSummary (登录)
|
...
|
...
|
|