浏览代码

Merge branch 'develop' of http://git.caihongxingqiu.net/rainbow/community-service into develop

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

+ 1 - 1
app/Repositories/PostRepositories.php

@@ -408,7 +408,7 @@ class PostRepositories
             $id = $request['id'];
         }
         $where[] = ['type', 'video'];
-        if(isset($request['type'])){
+        if(isset($request['type']) && $request['type']){
             if($request['type'] == 'hot'){
                 $ids = Redis::get('hotVideoIds');
                 if(!$ids){