Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口.md
T
memrelay 7a87bc24ff update: 平台工参导出接口
MemRelay-Operation: memory-save:platform-gongcan-fact-20261111-8
MemRelay-Resource: 84d426a9-a184-4d1c-b84c-6dba63f37777
2026-11-11 02:02:45 +08:00

3.1 KiB
Raw Blame History

title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
title type permalink stable_id scope memory_type project_id usage_profile_id status revision request_id created_at updated_at tags
平台工参导出接口 fact main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/平台工参导出接口 84d426a9-a184-4d1c-b84c-6dba63f37777 project fact d5a7f581-c442-4554-87b9-ee723b8b0258 0c9feb46-d06e-43cd-9ef0-c5813c84a998 active 8 platform-gongcan-fact-20261111-8 2026-11-10T13:40:51.351339+00:00 2026-11-10T18:02:43.433913+00:00
NQI
工参
经纬度
OpenCode

来源

nqi-opencode.chlz 是 OpenCode 页面抓包,没有 pro-assistant-server 的实际请求。导出说明在会话 ses_e3a7adae3ffe4QxrqaKUPgGATq,对应脚本 download-file-all-async.py。nqi-agent.chlz 是 2026-11-11 00:03 到 00:16 的 OpenCode 会话,里面已经有导出后的工参文件正文。

下载请求

  • POST https://nqi.gmcc.net:20443/pro-assistant-server/smart/file/download,只有 Content-Type: application/json,不发 Cookie,查询参数 tickets 来自 OpenCode 运行环境的 OPENCODE_TOOL_TICKET,请求体 {"sql": "..."},响应是流式 CSV。
  • 2026-11-10 用账号池 CASTGC 从线上服务器和本机直接请求,该路径均被 nginx 返回 403。只能经 OpenCode 会话让 AI 执行脚本。

OpenCode 接口(已在生产跑通,实现 app/nqi/opencode.py)

  • 开通:GET /pro-opencode/api/provision?random=&__PID=LXWXYWGZT&token= 返回 307 到 /pro-opencode/<用户>/L3dvcmtzcGFjZQ/session?...,再 GET 该地址种下 oc_castgc。
  • 之后前缀 /pro-opencode/<用户>/,除 file/content 外都带 tickets=,头 x-opencode-directory: %2Fworkspace。
  • 接口:session(POST/GET/DELETE)、session//prompt_async(204)、session/status、session//message、permission、question、file、file/content、global/health。模型 DeepSeek-V4-Flash-0731-w8a8。
  • OPENCODE_TOOL_TICKET 就是当前登录的 CASTGC(TGT),账号登出或 TGT 失效后一起失效。

表(information_schema 实查)

  • 4G:appdbv3.a_common_cfg_lte_cellant_d,天线粒度,一个 CGI 可有多行。没有 starttime;有 eff_from_date/eff_to_date(timestamp)、curr_flag、cgi、cell_name、station_name、enodeb_id/name、latitude/longitude(numeric)、network_type、area、town、state、cover_type、frequency_band、vendor、azimuth 等。
  • 5G:appdbv3.a_common_cfg_nr_cellant_d,ncgi、nrcell_name、gnodeb_id/name 等,每行 cgi == ncgi。
  • 某天的状态用 city = '江门' and eff_from_date <= make_date(...) and eff_to_date > make_date(...),不用 curr_flag。
  • 即席查询对应表:4G appdbv3.v_a_common_cfg_lte_cellant_d(cgi)、5G appdbv3.a_common_cfg_nr_cellant_d(ncgi),time_field starttime,天粒度,经纬度脱敏。

实测规模(江门)

  • 2026-11-01:4G 40,816 行 3.35 MB(去重 38,038 个 CGI,2,731 个有多行),5G 23,814 行 2.4 MB,0 坏行。
  • 生产快照 2026-11-10:4G 37,604 + 5G 23,801 个小区,61,337 有坐标,整份 80 秒;2026-10-01:62,063 个,72 秒。
  • 一条提示词 4 条命令约 138 秒、约 22 万输入 token;读文件 0.1–0.2 秒;清理约 10 秒。