Files
plugins/packages/qoder/testdata/campaigns-1028.json
T
yetone fd40b20c3b qoder 0.2.43: the check-in says when to ask again, as the 10:00 (UTC+8) campaign opens
sdytman on Discord: Qoder's daily credits start at 10:00, can the plugin's
check-in follow it? Qoder's /me/campaigns lists each day's CLAIM_BENEFIT
campaign with startAt 10:00 and endAt 09:59 the next day, both UTC+8
("Daily reset: 10:00 (UTC+8)"), read with a real account at 09:27 CST on
10-28. Qoder.app 0.4.3 polls that list every 5 minutes and treats
startAt <= now < endAt as active; there is no next-time field. A check-in
before 10:00 met yesterday's campaign, and magpie settled for the Beijing
day, so today's campaign waited until tomorrow, or was lost.

checkin now returns until: the next campaign's opening (the later of
endAt and startAt + 1 day, or the next startAt in the gap) plus a minute,
on done, claimed and "not offered yet". All in epoch time, so the
machine's zone doesn't matter; qoder and qoder-cn share the code. magpie
asks again at until once it reads it (yetone/magpie, next release).

Run (mote): checkin-window, native-checkin and checkin tests under
TZ=UTC, Etc/GMT+8 and Asia/Shanghai, 66 pass each; HOME=$(mktemp -d)
bun test, 2938 pass 0 fail 8 skip; bun scripts/check.mjs. A real qoder
account at 09:35 CST: claimed 100, until 2026-10-28T02:01:00Z.
Broken by hand: nextOpens returning endAt only, 11 of 13 checkin-window
tests red; askAgain returning {}, 12 of 13 red.
Not tried: a real Qoder CN account (none here); the server's list in the
09:59-10:00 gap.
2026-10-28 09:37:56 +08:00

65 lines
1.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"showCampaign": true,
"claimable": true,
"campaignUrl": "",
"campaigns": [
{
"campaignId": "01a17b2f-85d0-70e9-9c27-4a1fcc314a48",
"campaignKey": "act-20261027-207",
"actionType": "CLAIM_BENEFIT",
"startAt": 1793066400,
"endAt": 1793152740,
"claimStatus": "CLAIMABLE",
"benefit": {
"kind": "CREDITS",
"amount": 100,
"modelScope": {
"modelSeries": {
"key": "ALL_MODELS"
}
},
"validity": {
"mode": "RELATIVE_DAYS",
"days": 30
}
},
"placements": [
{
"type": "POPUP",
"campaignUrl": "https://openapi.qoder.sh/growth-page/activity-iframe",
"content": {
"en": {
"buttonText": "",
"description": "Daily reset: 10:00 (UTC+8). Valid for 30 days after claiming.",
"detailUrl": "https://docs.qoder.com/events/100credits",
"title": "Claim 100 Credits Daily"
},
"zh": {
"buttonText": "",
"description": "每日 10:00(UTC+8)刷新,领取后 30 天有效",
"detailUrl": "https://docs.qoder.com/zh/events/100credits",
"title": "每天领 100 Credits"
}
}
},
{
"type": "USAGE",
"content": {
"en": {
"buttonText": "",
"description": "Daily reset: 10:00 (UTC+8). Valid for 30 days after claiming.",
"detailUrl": "https://docs.qoder.com/events/100credits",
"title": "Claim 100 Credits Daily"
},
"zh": {
"buttonText": "",
"description": "每日 10:00(UTC+8)刷新,领取后 30 天有效",
"detailUrl": "https://docs.qoder.com/zh/events/100credits",
"title": "每天领 100 Credits"
}
}
}
]
}
]
}