更新委托天数判断
This commit is contained in:
parent
89a0cc88cb
commit
c5918d8acb
@ -294,10 +294,10 @@ class Community extends BaseController
|
||||
if (!$data['video_link']) throw new ValidateException('请上传视频');
|
||||
} elseif ($data['is_type'] == 4) {
|
||||
if (empty($data['entrust_mer_id']) || empty($data['entrust_day'])) {
|
||||
throw new ValidateException('请选择供应链商家、委托天数');
|
||||
throw new ValidateException('供应链商家及委托天数不能为空');
|
||||
}
|
||||
if ($data['entrust_day'] < 15 || $data['entrust_day'] > 90) {
|
||||
throw new ValidateException('委托天数区间为[15-90]');
|
||||
throw new ValidateException('委托天数区间为[15-90]天');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user