Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加碼劵為每週抽,且不可重覆,會需要可選週次 #2

Closed
avery20024 opened this issue Oct 15, 2021 · 3 comments
Closed

Comments

@avery20024
Copy link

10月11日至11月5日,採4週抽籤,每人每週最多中籤1次,4週最多可有4次中籤機會,每種券別僅可中籤一次

@onlinemad
Copy link
Owner

謝謝你的建議,之後可能會在券後面加上週次吧,像是這樣 動滋券[第一週]

@MrOrz
Copy link

MrOrz commented Oct 15, 2021

周次換算成對使用者較有意義的日期如何?

活動期間每週五(10/8起)23:59截止加碼券登記,週六00:00以後登記者,將參加次一週抽籤活動。

Ref: https://hpm.5000.gov.tw/cp.aspx?n=211

let coupons = [{
  name: '國旅券 [須在 10/8 前登記]',
  codes: ['21', '32', '98', '67', '97', '410']
}, {
  name: '國旅券 [須在 10/15 前登記]',
  codes: [/* 第二週的號碼 */]
},
// ... 其他周次與其他券 ...
]

(或者在 object 加個欄位記日期,就不用一直在 coupons 重複「[須在 XX 前登記]」)

@LuckyPigeon
Copy link

@MrOrz @onlinemad 直接改成這樣如何,就不用選週次了
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants