Explorar o código

xiyue user bugs

zz %!s(int64=5) %!d(string=hai) anos
pai
achega
8950bd264e
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      app/Http/Controllers/Wap/Other/XiyueController.php

+ 4 - 1
app/Http/Controllers/Wap/Other/XiyueController.php

@@ -124,7 +124,10 @@ class XiyueController extends Controller
                 $last_read_info = ReadRecordService::getByField($user_item->id,'last_read');
                 if(!$last_read_info) continue;
                 list($bid,$cid,$time) = explode('_',$last_read_info);
-                if($time >$temp_time) $select_user = $user_item;
+                if($time >$temp_time) {
+                    $select_user = $user_item;
+                    $temp_time = $time;
+                }
             }
         }
         if(!$select_user) return $user;