Skip to content

feat(kf): 获取客户基础信息支持 need_enter_session_context - #894

Merged
houseme merged 1 commit into
silenceper:v2from
wwek:feat/kf-enter-session-context
Nov 4, 2026
Merged

houseme merged 1 commit into
silenceper:v2from
wwek:feat/kf-enter-session-context

Conversation

@wwek

@wwek wwek commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

说明

微信客服「获取客户基础信息」接口新增了 need_enter_session_context 请求参数及 enter_session_context 返回字段(官方文档最后更新:2025/11/18)。

文档地址:https://developer.work.weixin.qq.com/document/path/95159

变更内容

  • CustomerBatchGetOptions 新增 NeedEnterSessionContext(need_enter_session_context):是否返回客户 48 小时内最后一次进入会话的上下文信息,0-不返回 1-返回,默认不返回
  • CustomerSchema 新增 EnterSessionContext(enter_session_context):进入会话的上下文信息,仅在请求参数设为 1 时返回
  • 新增 CustomerEnterSessionContextSchema:scene(场景值)、scene_param(自定义参数)、wechat_channels(视频号信息)
  • 新增 CustomerWechatChannelsSchema:nickname、shop_nickname、scene(视频号场景值 1-5)

兼容性

  • 新增字段均为可选,零值即为官方默认行为,不影响现有调用方
  • enter_session_context 未请求时服务端不返回,JSON 反序列化为空结构体

已验证:go build ./work/...、go vet ./work/kf/ 通过。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T13:51:32.243399Z 8d35044 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@houseme
houseme merged commit 8409760 into silenceper:v2 Nov 4, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants