wzq il y a 5 ans
Parent
commit
062f7add50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Repositories/MessageRuleRepository.php

+ 1 - 1
app/Repositories/MessageRuleRepository.php

@@ -52,7 +52,7 @@ class MessageRuleRepository
     public function create($request)
     {
         $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']);
             if(!$post_type){