创建时间处理

This commit is contained in:
2025-08-20 13:37:25 +08:00
parent c7c25381cc
commit bba9c294f4
3 changed files with 4 additions and 5 deletions
@@ -35,6 +35,8 @@ class ConversationService
$user = User::where('id', $value['user_id'])->first();
$value['user_name'] = $user?->name;
$value['user_avatar'] = $user?->avatar;
$value['created_at'] = date('Y-m-d H:i:s', strtotime($value['created_at']));
$value['updated_at'] = date('Y-m-d H:i:s', strtotime($value['updated_at']));
$result[$key] = $value;
}
return $result;