zz 6 سال پیش
والد
کامیت
74782881d7
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      app/Modules/User/Services/ReadRecordService.php

+ 3 - 2
app/Modules/User/Services/ReadRecordService.php

@@ -119,9 +119,10 @@ class ReadRecordService
             Redis::setex($chapter_key,3600,$chapter_name);
         }
 
-        Redis::hset('book_read:' . $uid, 'last_read', "{$bid}_{$cid}_" . time());
+        /*Redis::hset('book_read:' . $uid, 'last_read', "{$bid}_{$cid}_" . time());
         //Redis::hset('book_read:'.$uid, $bid, $cid."_".time());
-        Redis::hset('book_read:' . $uid, $bid, "{$cid}_" . time());
+        Redis::hset('book_read:' . $uid, $bid, "{$cid}_" . time());*/
+        Redis::hmset('book_read:' . $uid,'last_read', "{$bid}_{$cid}_" . time(),$bid, "{$cid}_" . time());
     }
     
     /**