作者 lyh

gx

@@ -78,8 +78,8 @@ class ServerConfigLogic extends BaseLogic @@ -78,8 +78,8 @@ class ServerConfigLogic extends BaseLogic
78 DB::beginTransaction(); 78 DB::beginTransaction();
79 try { 79 try {
80 //保存配置 80 //保存配置
81 - $this->param['create_at'] = date('Y-m-d H:i:s');  
82 - $this->param['updated_at'] = $this->param['create_at']; 81 + $this->param['created_at'] = date('Y-m-d H:i:s');
  82 + $this->param['updated_at'] = $this->param['created_at'];
83 $res = $this->model->insertGetId($this->param); 83 $res = $this->model->insertGetId($this->param);
84 if ($this->param['type'] == ServerConfig::TYPE_SERVER) { 84 if ($this->param['type'] == ServerConfig::TYPE_SERVER) {
85 $data['serve_id'] = $res; 85 $data['serve_id'] = $res;