作者 lyh

gx

@@ -78,6 +78,8 @@ class ServerConfigLogic extends BaseLogic @@ -78,6 +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 $res = $this->model->insertGetId($this->param); 83 $res = $this->model->insertGetId($this->param);
82 if ($this->param['type'] == ServerConfig::TYPE_SERVER) { 84 if ($this->param['type'] == ServerConfig::TYPE_SERVER) {
83 $data['serve_id'] = $res; 85 $data['serve_id'] = $res;