|
@@ -128,6 +128,9 @@ class Certificate extends Backend
|
|
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
|
|
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
|
|
$this->model->validateFailException()->validate($validate);
|
|
$this->model->validateFailException()->validate($validate);
|
|
}
|
|
}
|
|
|
|
+ $params['free_start_time'] = date("Y-m-d H:i:s");
|
|
|
|
+ $params['free_end_time'] = $params["effective_time"];
|
|
|
|
+ $params['status'] = 1;
|
|
$result = $this->model->allowField(true)->save($params);
|
|
$result = $this->model->allowField(true)->save($params);
|
|
Db::commit();
|
|
Db::commit();
|
|
} catch (ValidateException|PDOException|Exception $e) {
|
|
} catch (ValidateException|PDOException|Exception $e) {
|