正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -76,7 +76,9 @@ class UpdateLog extends Model | @@ -76,7 +76,9 @@ class UpdateLog extends Model | ||
| 76 | $collect_time = '采集中'; | 76 | $collect_time = '采集中'; |
| 77 | } else { | 77 | } else { |
| 78 | $collect_info = UpdateLog::where('project_id', $project_id)->orderBy('updated_at', 'desc')->first(); | 78 | $collect_info = UpdateLog::where('project_id', $project_id)->orderBy('updated_at', 'desc')->first(); |
| 79 | - $collect_time = $collect_info->updated_at->format('Y-m-d H:i:s'); | 79 | + if(!empty($collect_info)){ |
| 80 | + $collect_time = $collect_info->updated_at->format('Y-m-d H:i:s'); | ||
| 81 | + } | ||
| 80 | } | 82 | } |
| 81 | 83 | ||
| 82 | return $collect_time; | 84 | return $collect_time; |
-
请 注册 或 登录 后发表评论