zcode: say what the feed's seq is, ZCode's count of its requests, not a page (#676)

#676 (XinOrigin) suggests scanning marketing/touch at seq 0..8 each
round. ZCode 3.17.2's client (zai-org/ZCode@a9fe401) sends seq as a
per-process counter from 0, one GET per refresh
(marketingTouchService.ts, bootRequestSeq), and its doc says the
number is only for the server's logs and does not change what is
delivered (docs/marketing-touch-client.md, "启动请求序号 seq"). The
plugin already sends it that way. Nine GETs a round per account would
be the tighter polling #503 asks us not to do, so the comment says
why it is one ask.

Comment only: no version bump, nothing run.
This commit is contained in:
yetone
2026-11-05 01:44:15 +08:00
parent 00642d4c6b
commit 8fcc592e8b
+6
View File
@@ -768,6 +768,12 @@ async function claimOne(s, planID) {
// gifts are the rewards website's, claimed in the client.
const TOUCH = "/api/v1/marketing/touch"
const CLAIM_ACTION = "claim_zcode_plan"
// touchSeq is the feed's seq: ZCode's own count of its feed requests
// since the process started, from 0, one GET per refresh. It is not a
// page: "仅供服务端日志定位,不改变投放判断" (docs/marketing-touch-client.md,
// marketingTouchService.ts's bootRequestSeq, zai-org/ZCode@a9fe401), so a
// check-in asks once, never seq 0..8 in a row (plugins#676), and a banner
// seen at one seq and not another is a delivery arriving later.
let touchSeq = 0
// clientLanguage is the language ZCode names to marketing/touch: zh-CN or
// en-US, its two UI languages, never another (marketingTouchService's