feat: 订阅支持开始日期和重置周期

This commit is contained in:
xream
2024-03-11 03:11:01 +08:00
parent 518de2e919
commit 4b27d40602
3 changed files with 57 additions and 17 deletions

View File

@@ -111,7 +111,11 @@ async function getFlowInfo(req, res) {
}
success(res, {
...parseFlowHeaders(flowHeaders),
remainingDays: getRmainingDays($arguments.resetDay),
remainingDays: getRmainingDays({
resetDay: $arguments.resetDay,
startDate: $arguments.startDate,
cycleDays: $arguments.cycleDays,
}),
});
} catch (err) {
failed(