|
@@ -56,7 +56,7 @@ class NoticeRuleController extends Controller
|
|
$validator = Validator::make($request->all(), [
|
|
$validator = Validator::make($request->all(), [
|
|
'title' => 'required|string|max:30',
|
|
'title' => 'required|string|max:30',
|
|
'notice_user_type' => ['required',Rule::in(0, 1, 2)],
|
|
'notice_user_type' => ['required',Rule::in(0, 1, 2)],
|
|
- 'action_type' => ['required',Rule::in('post', 'star', 'activity', 'product')],
|
|
|
|
|
|
+ 'action_type' => ['required',Rule::in('post', 'recommend', 'activity', 'product')],
|
|
'action_id' => 'required_unless:action_type,star|integer|min:1',
|
|
'action_id' => 'required_unless:action_type,star|integer|min:1',
|
|
'content' => 'required|string|max:60',
|
|
'content' => 'required|string|max:60',
|
|
'send_time' => 'nullable|date',
|
|
'send_time' => 'nullable|date',
|