Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:企业微信客户端API JS-SDK wx.config 和 wx.agentConfig 方法权限签名 #817

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

mahongran
Copy link
Contributor

@mahongran mahongran commented Jan 13, 2025

…anagement

- Added AgentID field to WorkAccessToken struct.
- Updated NewWorkAccessToken function to accept AgentID as a parameter.
- Modified access token cache key to incorporate AgentID, ensuring unique cache entries per agent.

This change improves the handling of access tokens in a multi-agent environment.
- Updated the AgentID field in WorkAccessToken struct to clarify its optional nature for distinguishing applications.
- Modified the access token cache key construction to support both new and legacy formats based on the presence of AgentID.
- Added comments for better understanding of the cache key logic and its compatibility with historical versions.

This change improves the flexibility and clarity of access token management in multi-agent scenarios.
- Introduced a new JsSdk method in the Work struct to facilitate the creation of a Js instance.
- This addition enhances the functionality of the Work module by enabling JavaScript SDK support.

This change improves the integration capabilities for developers working with the WeChat Work API.
@mahongran mahongran closed this Jan 13, 2025
@mahongran mahongran reopened this Jan 13, 2025
@houseme
Copy link
Collaborator

houseme commented Jan 13, 2025

please fix @mahongran

@mahongran mahongran closed this Jan 14, 2025
# Conflicts:
#	credential/default_access_token.go
@mahongran mahongran reopened this Jan 14, 2025
@houseme houseme merged commit 9c87d1c into silenceper:v2 Jan 14, 2025
13 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