浏览代码

read record redis

zz 6 年之前
父节点
当前提交
89345fe65e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/BookTest.php

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

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