Bläddra i källkod

read record redis

zz 6 år sedan
förälder
incheckning
41c0074e34
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Console/Commands/BookTest.php

+ 1 - 1
app/Console/Commands/BookTest.php

@@ -589,7 +589,7 @@ class BookTest extends Command
                 continue;
             }
             $last_info = explode(',',explode('_',$last_read));
-            if(time()-$last_info[1]>=5*30*86400 ){
+            if(time()-$last_info[2]>=5*30*86400 ){
                 $record = Redis::hgetall('book_read:'.$i);
                 $data = [];