fix: 分享详情页显示到期时间
问题: - 分享列表中显示的到期时间正确 - 但点进分享详情页时,到期时间只显示"永久有效" 原因: - /api/share/:code/verify 接口返回的 share 对象中缺少 expires_at 字段 - 前端 shareInfo.expires_at 为 undefined,导致始终显示"永久有效" 修复: - 在 server.js:1650 添加 expires_at 到响应数据中 - 现在分享详情页能正确显示到期时间 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1646,7 +1646,8 @@ app.post('/api/share/:code/verify', shareRateLimitMiddleware, async (req, res) =
|
|||||||
share_path: share.share_path,
|
share_path: share.share_path,
|
||||||
share_type: share.share_type,
|
share_type: share.share_type,
|
||||||
username: share.username,
|
username: share.username,
|
||||||
created_at: share.created_at
|
created_at: share.created_at,
|
||||||
|
expires_at: share.expires_at // 添加到期时间
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user