...
|
...
|
@@ -112,6 +112,7 @@ class Bcoupon extends Backend |
|
|
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
|
|
|
$this->model->validateFailException(true)->validate($validate);
|
|
|
}
|
|
|
$params['start_time'] = strtotime($params['start_time']);
|
|
|
$params['end_time'] = strtotime($params['end_time']);
|
|
|
//无门槛,有门槛
|
|
|
if($params['c_type'] == 0){
|
...
|
...
|
@@ -186,6 +187,7 @@ class Bcoupon extends Backend |
|
|
$validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
|
|
|
$row->validateFailException(true)->validate($validate);
|
|
|
}
|
|
|
$params['start_time'] = strtotime($params['start_time']);
|
|
|
$params['end_time'] = strtotime($params['end_time']);
|
|
|
//无门槛,有门槛
|
|
|
if($params['c_type'] == 0){
|
...
|
...
|
|