拆分兑换凭证纯函数与结果写入

This commit is contained in:
yml
2026-05-04 13:19:05 +08:00
parent 58f25fad74
commit 37c9dfd119
7 changed files with 467 additions and 89 deletions
@@ -0,0 +1,11 @@
import path from 'node:path'
export function buildArtifactPaths(outputDir) {
return {
redeemPageScreenshotPath: path.join(outputDir, 'redeem-page.png'),
beijingTimeScreenshotPath: path.join(outputDir, 'beijing-time.png'),
screenshotPath: path.join(outputDir, 'redeem-result.png'),
htmlPath: path.join(outputDir, 'page.html'),
resultPath: path.join(outputDir, 'result.json'),
}
}