作者 jinglong
1 个管道 的构建 通过 耗费 0 秒

修改优惠券开始日期

... ... @@ -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){
... ...
... ... @@ -105,6 +105,7 @@ class Coupon 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){
... ... @@ -179,6 +180,7 @@ class Coupon 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){
... ...
... ... @@ -112,6 +112,7 @@ class Gcoupon 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 Gcoupon 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){
... ...