作者 lyh

gx

@@ -50,7 +50,7 @@ class ServerConfigLogic extends BaseLogic @@ -50,7 +50,7 @@ class ServerConfigLogic extends BaseLogic
50 public function getServiceConfig(){ 50 public function getServiceConfig(){
51 $encrypt = new EncryptUtils(); 51 $encrypt = new EncryptUtils();
52 $info = $this->model->read(['id'=>$this->param['id']]); 52 $info = $this->model->read(['id'=>$this->param['id']]);
53 - $info['account'] = $encrypt->unlock_url($this->param['account']); 53 + $info['user'] = $encrypt->unlock_url($this->param['user']);
54 $info['password'] = $encrypt->unlock_url($this->param['password']); 54 $info['password'] = $encrypt->unlock_url($this->param['password']);
55 $this->param['port'] = $encrypt->unlock_url($this->param['port']); 55 $this->param['port'] = $encrypt->unlock_url($this->param['port']);
56 if($info === false){ 56 if($info === false){
@@ -71,7 +71,7 @@ class ServerConfigLogic extends BaseLogic @@ -71,7 +71,7 @@ class ServerConfigLogic extends BaseLogic
71 DB::beginTransaction(); 71 DB::beginTransaction();
72 try { 72 try {
73 $encrypt = new EncryptUtils(); 73 $encrypt = new EncryptUtils();
74 - $this->param['account'] = $encrypt->lock_url($this->param['account']); 74 + $this->param['user'] = $encrypt->lock_url($this->param['user']);
75 $this->param['password'] = $encrypt->lock_url($this->param['password']); 75 $this->param['password'] = $encrypt->lock_url($this->param['password']);
76 $this->param['port'] = $encrypt->lock_url($this->param['port']); 76 $this->param['port'] = $encrypt->lock_url($this->param['port']);
77 //保存配置 77 //保存配置