From e151929eff4589aa2551367196d31564891aded6 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Tue, 10 Nov 2026 21:48:38 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=B9=B3=E5=8F=B0=E5=B7=A5=E5=8F=82?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:nqi-gongcan-download-20261110-2 MemRelay-Resource: 84d426a9-a184-4d1c-b84c-6dba63f37777 --- .../平台工参导出接口.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口.md b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口.md index 0b24997..b60b1cc 100644 --- a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口.md +++ b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口.md @@ -8,10 +8,10 @@ memory_type: fact project_id: d5a7f581-c442-4554-87b9-ee723b8b0258 usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 status: active -revision: 1 -request_id: nqi-gongcan-download-20261110-1 +revision: 2 +request_id: nqi-gongcan-download-20261110-2 created_at: '2026-11-10T13:40:51.351339+00:00' -updated_at: '2026-11-10T13:40:51.351339+00:00' +updated_at: '2026-11-10T13:48:36.293366+00:00' tags: - NQI - 工参 @@ -25,10 +25,15 @@ nqi-opencode.chlz 是 OpenCode 页面抓包,没有 pro-assistant-server 的实 ## 请求 - POST https://nqi.gmcc.net:20443/pro-assistant-server/smart/file/download - 只有请求头 Content-Type: application/json,不发 Cookie。 -- 鉴权是查询参数 tickets,值来自 OpenCode 运行环境的 OPENCODE_TOOL_TICKET,不是门户 CASTGC。 -- 请求体是 {"sql": "..."},响应是流式 CSV。 +- 查询参数 tickets 来自 OpenCode 运行环境的 OPENCODE_TOOL_TICKET。 +- 请求体是 {"sql": "..."},响应是流式 CSV。另有查询接口 pro-assistant-server/smart/execSql,同样读这个环境变量。 - 2026-11-10 用账号池里 dwmoyingda 的 CASTGC 从线上服务器和本机请求,该路径均被 nginx 返回 403;同一会话访问即席查询正常。 +## OPENCODE_TOOL_TICKET +- 它就是当前登录的 CASTGC,类型是 TGT。抓包里 GET /pro-opencode/api/provision 返回 307,跳转地址上的 tickets 与同一请求的 CASTGC 完全相同。 +- OpenCode 启动工具进程时把这个值注入环境变量,脚本自己不生成。账号池里已经有这个值。 +- 拿到票据不等于能在 OpenCode 外调下载。外部请求在 nginx 层就被 403,没有进入应用的票据校验。 + ## 表 - 4G:appdbv3.a_common_cfg_lte_cellant_d,通用 LTE 工程参数_天。longitude、latitude 是 numeric(22,6)。 - 5G:appdbv3.a_common_cfg_nr_cellant_d,通用 5G 工程参数_天。