wzq 5 年之前
父节点
当前提交
2ace5c4cf6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Repositories/TopicRepository.php

+ 1 - 1
app/Repositories/TopicRepository.php

@@ -80,7 +80,7 @@ class TopicRepository {
                 }
             }
             DB::commit();
-            Redis::zadd('topic.name', $topicInfo->name, $topicInfo->id);
+            Redis::zadd('topic.name', $topicInfo->id, $topicInfo->name);
             return Response::create();
         }catch (QueryException $exception){
             DB::rollBack();