wzq преди 5 години
родител
ревизия
bb454bcc06
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Repositories/MessageRuleRepository.php

+ 1 - 1
app/Repositories/MessageRuleRepository.php

@@ -52,7 +52,7 @@ class MessageRuleRepository
     public function create($request)
     public function create($request)
     {
     {
         $post_type = '';
         $post_type = '';
-        if($request['message_show_type'] == 'post'){
+        if(isset($request['message_show_type']) && $request['message_show_type'] == 'post'){
             //查看内容的类型
             //查看内容的类型
             $post_type = $this->getPostType($request['activity_url']);
             $post_type = $this->getPostType($request['activity_url']);
             if(!$post_type){
             if(!$post_type){