Skip to content

fix: send Qoder CN campaign check-in with desktop Cosy headers - #207

Merged
caigee-cmd merged 2 commits into
mainfrom
feat/qoder-cn-campaign-headers
Sep 19, 2026
Merged

caigee-cmd merged 2 commits into
mainfrom
feat/qoder-cn-campaign-headers

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Official Qoder CN campaign listing filters CLI-only requests, so GET /sash/api/v1/me/campaigns returned no claimable credit activity and check-in was recorded as skipped / 活动未开放.
  • Send the desktop campaign headers (User-Agent: Qoder, Cosy-ClientType: 10, Cosy-Version: 0.3.4, activity-iframe Referer) used by local Qoder CN 0.3.4.
  • Live check: importing a US1 Qoder CN account and checking in locally changed 活动未开放 to 今日已签到.

Test plan

  • cd worker && node --test test/checkin.test.mjs
  • Import US1 qoder/cn account into local container and POST /api/accounts/{id}/checkin
  • Production us1 still on v0.6.2 until this ships

The official activity list filters CLI-only requests, so daily credits were reported as unavailable. Match the desktop campaign client headers.
@caigee-cmd
caigee-cmd merged commit 41347e1 into main Sep 19, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant