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

修改优惠券开始日期

@@ -112,6 +112,7 @@ class Bcoupon extends Backend @@ -112,6 +112,7 @@ class Bcoupon extends Backend
112 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate; 112 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
113 $this->model->validateFailException(true)->validate($validate); 113 $this->model->validateFailException(true)->validate($validate);
114 } 114 }
  115 + $params['start_time'] = strtotime($params['start_time']);
115 $params['end_time'] = strtotime($params['end_time']); 116 $params['end_time'] = strtotime($params['end_time']);
116 //无门槛,有门槛 117 //无门槛,有门槛
117 if($params['c_type'] == 0){ 118 if($params['c_type'] == 0){
@@ -186,6 +187,7 @@ class Bcoupon extends Backend @@ -186,6 +187,7 @@ class Bcoupon extends Backend
186 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate; 187 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
187 $row->validateFailException(true)->validate($validate); 188 $row->validateFailException(true)->validate($validate);
188 } 189 }
  190 + $params['start_time'] = strtotime($params['start_time']);
189 $params['end_time'] = strtotime($params['end_time']); 191 $params['end_time'] = strtotime($params['end_time']);
190 //无门槛,有门槛 192 //无门槛,有门槛
191 if($params['c_type'] == 0){ 193 if($params['c_type'] == 0){
@@ -105,6 +105,7 @@ class Coupon extends Backend @@ -105,6 +105,7 @@ class Coupon extends Backend
105 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate; 105 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
106 $this->model->validateFailException(true)->validate($validate); 106 $this->model->validateFailException(true)->validate($validate);
107 } 107 }
  108 + $params['start_time'] = strtotime($params['start_time']);
108 $params['end_time'] = strtotime($params['end_time']); 109 $params['end_time'] = strtotime($params['end_time']);
109 //无门槛,有门槛 110 //无门槛,有门槛
110 if($params['c_type'] == 0){ 111 if($params['c_type'] == 0){
@@ -179,6 +180,7 @@ class Coupon extends Backend @@ -179,6 +180,7 @@ class Coupon extends Backend
179 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate; 180 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
180 $row->validateFailException(true)->validate($validate); 181 $row->validateFailException(true)->validate($validate);
181 } 182 }
  183 + $params['start_time'] = strtotime($params['start_time']);
182 $params['end_time'] = strtotime($params['end_time']); 184 $params['end_time'] = strtotime($params['end_time']);
183 //无门槛,有门槛 185 //无门槛,有门槛
184 if($params['c_type'] == 0){ 186 if($params['c_type'] == 0){
@@ -112,6 +112,7 @@ class Gcoupon extends Backend @@ -112,6 +112,7 @@ class Gcoupon extends Backend
112 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate; 112 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.add' : $name) : $this->modelValidate;
113 $this->model->validateFailException(true)->validate($validate); 113 $this->model->validateFailException(true)->validate($validate);
114 } 114 }
  115 + $params['start_time'] = strtotime($params['start_time']);
115 $params['end_time'] = strtotime($params['end_time']); 116 $params['end_time'] = strtotime($params['end_time']);
116 //无门槛,有门槛 117 //无门槛,有门槛
117 if($params['c_type'] == 0){ 118 if($params['c_type'] == 0){
@@ -186,6 +187,7 @@ class Gcoupon extends Backend @@ -186,6 +187,7 @@ class Gcoupon extends Backend
186 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate; 187 $validate = is_bool($this->modelValidate) ? ($this->modelSceneValidate ? $name . '.edit' : $name) : $this->modelValidate;
187 $row->validateFailException(true)->validate($validate); 188 $row->validateFailException(true)->validate($validate);
188 } 189 }
  190 + $params['start_time'] = strtotime($params['start_time']);
189 $params['end_time'] = strtotime($params['end_time']); 191 $params['end_time'] = strtotime($params['end_time']);
190 //无门槛,有门槛 192 //无门槛,有门槛
191 if($params['c_type'] == 0){ 193 if($params['c_type'] == 0){