Browse Source

Merge branch 'kuaiyingyong' of iqiyoo:zhuishuyun_wap into kuaiyingyong

zz 4 years ago
parent
commit
45e98d5bb0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/Http/Controllers/QuickApp/User/UserShelfBooksController.php

+ 6 - 0
app/Http/Controllers/QuickApp/User/UserShelfBooksController.php

@@ -37,6 +37,12 @@ class UserShelfBooksController extends BaseController
                     break;
                 }
             }
+
+            //补充逻辑 书架有、阅读记录没有场景
+            if(!isset($v['recent_cid']))
+            {
+                $v['recent_cid']             = $v['first_cid'];
+            }
         }
         return response()->collection(new UserShelfBooksTransformer(), $res);
     }