소스 검색

修改赛事

lip 3 주 전
부모
커밋
4aeaffaf4b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Models/User.php

+ 1 - 1
app/Models/User.php

@@ -29,7 +29,7 @@ class User extends BaseModel
 
     function getLastActiveTimeAttribute($value): string
     {
-        if ($value > 0) {
+        if ($value > 0 && !is_numeric($value)) {
             return date('Y-m-d H:i', strtotime($value));
         }
         return "";