Skip to content

Navigation Menu

Sign in
Sign up

Support all enterprise WeChat message types - #1

Draft
xyzphp wants to merge 1 commit into
Hanson:main from
xyzphp:agent/upstream-message-types
Draft

Support all enterprise WeChat message types #1
xyzphp wants to merge 1 commit into
Hanson:main from
xyzphp:agent/upstream-message-types

Conversation

@xyzphp

@xyzphp xyzphp commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • Decode all enterprise WeChat message types currently exposed by the Finance SDK.
  • Preserve appid and pagepath for weapp messages, which are absent from the SDK's current WeAppMessage type.
  • Return raw JSON for unknown or future message types instead of returning a null message.

Background

The existing message switch handles only a subset of enterprise WeChat archive message types. In addition, using the SDK's current mini-program message decoder drops the appid and pagepath fields from the payload.

This change centralizes message decoding, adds the remaining SDK-supported types, and keeps a forward-compatible raw JSON fallback.

Tests

  • go test ./...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /