From 8fcc592e8bc9f027f78bff410a324dbe4e0632c5 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 5 Nov 2026 01:44:15 +0800 Subject: [PATCH] zcode: say what the feed's seq is, ZCode's count of its requests, not a page (#676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #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. --- packages/zcode/index.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/zcode/index.mjs b/packages/zcode/index.mjs index d928bb8..be19565 100644 --- a/packages/zcode/index.mjs +++ b/packages/zcode/index.mjs @@ -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