作者 lyh

gx

... ... @@ -50,7 +50,7 @@ class ServerConfigLogic extends BaseLogic
public function getServiceConfig(){
$encrypt = new EncryptUtils();
$info = $this->model->read(['id'=>$this->param['id']]);
$info['account'] = $encrypt->unlock_url($this->param['account']);
$info['user'] = $encrypt->unlock_url($this->param['user']);
$info['password'] = $encrypt->unlock_url($this->param['password']);
$this->param['port'] = $encrypt->unlock_url($this->param['port']);
if($info === false){
... ... @@ -71,7 +71,7 @@ class ServerConfigLogic extends BaseLogic
DB::beginTransaction();
try {
$encrypt = new EncryptUtils();
$this->param['account'] = $encrypt->lock_url($this->param['account']);
$this->param['user'] = $encrypt->lock_url($this->param['user']);
$this->param['password'] = $encrypt->lock_url($this->param['password']);
$this->param['port'] = $encrypt->lock_url($this->param['port']);
//保存配置
... ...