更新委托天数判断
This commit is contained in:
parent
93cc6046e5
commit
89a0cc88cb
@ -292,7 +292,15 @@ class Community extends BaseController
|
||||
$data['status_time'] = date('Y-m-d H:i:s', time());
|
||||
}
|
||||
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('请选择供应链商家、委托天数');
|
||||
}
|
||||
if ($data['entrust_day'] < 15 || $data['entrust_day'] > 90) {
|
||||
throw new ValidateException('委托天数区间为[15-90]');
|
||||
}
|
||||
}
|
||||
|
||||
$data['content'] = filter_emoji($data['content']);
|
||||
MiniProgramService::create()->msgSecCheck($this->request->userInfo(), $data['content'],3,0);
|
||||
app()->make(CommunityValidate::class)->check($data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user