wzq 5 years ago
parent
commit
8f6364aaa6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Traits/PostTrait.php

+ 1 - 1
app/Traits/PostTrait.php

@@ -38,7 +38,7 @@ trait PostTrait
         $ids = explode(',', $topic_ids);
         $topic = [];
         foreach($ids as $id){
-            $name = $topicNameArray = Redis::ZRANGEBYSCORE('topic.name', $id, $id);
+            $name = Redis::ZRANGEBYSCORE('topic.name', $id, $id);
             if($name && isset($name[0])){
                 $topic[] = [
                     'id' => intval($id),