Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口.md
T
memrelay 0781202855 update: 平台工参导出接口
MemRelay-Operation: memory-save:nqi-agent-prompt-20261111-1
MemRelay-Resource: 84d426a9-a184-4d1c-b84c-6dba63f37777
2026-11-11 00:22:26 +08:00

32 lines
1.5 KiB
Markdown
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.
---
title: 平台工参导出接口
type: fact
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口
stable_id: 84d426a9-a184-4d1c-b84c-6dba63f37777
scope: project
memory_type: fact
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 4
request_id: nqi-agent-prompt-20261111-1
created_at: '2026-11-10T13:40:51.351339+00:00'
updated_at: '2026-11-10T16:22:23.773325+00:00'
tags:
- NQI
- OpenCode
- prompt
- 凭据过期
---
## 发送指令
nqi-agent.chlz 里发给 AI 的请求是 POST /pro-opencode/dwmoyingda/session/<会话>/prompt_async,返回 204。2026-11-11 00:04:55 的正文是导出江门 4G/5G 工参,00:14:00 的正文是清理下载数据。正文只有 messageID、agent、model、parts[].text,没有票据。
## 同一次请求带的凭据
- 查询参数 tickets 与 Cookie CASTGC 是同一个 TGT。整段抓包 236 次 tickets 都是这一个值。
- 同时发送 oc_castgc,另一张 TGT,长度 110,查询参数不用它。
- opencode_route 是 65 字符路由值,oc_locale 是 zh,metabase.DEVICE 是 36 字符设备标识。x-opencode-directory 是目录路径。没有 Authorization 头。
- 这次抓包只有一条 Set-Cookie:即席查询的 JSESSIONID,HttpOnly,没有 Max-Age 或 Expires。
## 过期
指令请求使用的票据就是门户登录的 CASTGC。账号登出或这张 TGT 在服务器上失效后,prompt_async 一起失效。没有单独的 AI 会话票据。