You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
<?php |
|
/* |
|
* @Author: witersen |
|
* @Date: 2022-04-24 23:37:05 |
|
* @LastEditors: witersen |
|
* @LastEditTime: 2022-05-06 21:37:21 |
|
* @Description: QQ:1801168257 |
|
*/ |
|
|
|
namespace app\controller; |
|
|
|
use app\service\Safe as ServiceSafe; |
|
|
|
class Safe extends Base |
|
{ |
|
/** |
|
* 服务层对象 |
|
* |
|
* @var object |
|
*/ |
|
private $ServiceSafe; |
|
|
|
function __construct() |
|
{ |
|
parent::__construct(); |
|
|
|
$this->ServiceSafe = new ServiceSafe(); |
|
} |
|
|
|
/** |
|
* 获取安全配置选项 |
|
* |
|
* @return array |
|
*/ |
|
public function GetSafeConfig() |
|
{ |
|
$result = $this->ServiceSafe->GetSafeConfig(); |
|
json2($result); |
|
} |
|
|
|
/** |
|
* 设置安全配置选项 |
|
* |
|
* @return array |
|
*/ |
|
public function SetSafeConfig() |
|
{ |
|
$result = $this->ServiceSafe->SetSafeConfig(); |
|
json2($result); |
|
} |
|
|
|
/** |
|
* 获取登录验证码选项 |
|
* |
|
* @return array |
|
*/ |
|
public function GetVerifyOption() |
|
{ |
|
$result = $this->ServiceSafe->GetVerifyOption(); |
|
json2($result); |
|
} |
|
}
|
|
|