zz преди 6 години
родител
ревизия
f24ddafb69
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Modules/User/Services/ReadRecordService.php

+ 1 - 1
app/Modules/User/Services/ReadRecordService.php

@@ -522,7 +522,7 @@ class ReadRecordService
         $record = ReadRecordFromRedis::where('uid',$uid)->select('field','value')->get();
         if($record->isNotEmpty()){
             foreach ($record as $item){
-                if(!in_array($item->field,self::$not_uid_key)){
+                if(!in_array($item->field,self::$not_uid_key) || $item->field == 'last_read'){
                     Redis::hset('book_read:'.$uid,$item->field,$item->value);
                 }
             }