瀏覽代碼

推荐首页

wzq 5 年之前
父節點
當前提交
850d47d6e4
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Http/Controllers/ConfigController.php
  2. 1 1
      app/Http/Controllers/NoticeRuleController.php

+ 1 - 1
app/Http/Controllers/ConfigController.php

@@ -154,7 +154,7 @@ class ConfigController extends Controller
                 //跳转类型
                 //跳转类型
                 'action_type' =>[
                 'action_type' =>[
                     'post' => '内容',
                     'post' => '内容',
-                    'star' => '首页',
+                    'recommend' => '推荐首页',
                     'activity' => '活动',
                     'activity' => '活动',
                     'product' => '商品',
                     'product' => '商品',
                 ],
                 ],

+ 1 - 1
app/Http/Controllers/NoticeRuleController.php

@@ -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',