mahongran
71c8ab58fb
F ix work access token ( #810 )
...
* feat: enhance WorkAccessToken to include AgentID for improved token management
- 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.
* refactor: enhance WorkAccessToken to improve cache key handling
- 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.
* feat: enhance WorkAccessToken with new constructor for AgentID support
- Introduced NewWorkAccessTokenWithAgentID function to maintain backward compatibility while allowing for AgentID usage.
- Updated NewWorkAccessToken to call the new constructor, ensuring seamless integration.
- Improved error handling in GetAccessTokenContext by checking for cache availability and handling potential errors during cache operations.
This change enhances the flexibility of access token management, particularly in multi-agent scenarios, while ensuring compatibility with existing implementations.
2025-01-07 22:19:21 +08:00
markwang
17521d047e
feat: 企业微信-微信客服,客服账号列表接口支持分页拉取,接待人员增加部门ID ( #798 )
...
Co-authored-by: houseme <qzg40737@163.com >
2025-01-06 14:52:42 +08:00
markwang
990ba6ede9
feat: 企业微信-接待人员管理增加部门ID及停止接待子类型 ( #800 )
2024-10-16 16:11:20 +08:00
markwang
3f1c5e7637
企业微信-移除可省略的错误判断 ( #734 )
...
Co-authored-by: markwang <www.wang61@qq.com >
2023-10-10 19:31:23 +08:00
markwang
9e810be88a
feat:企业微信-微信客服-知识库 ( #715 )
...
* feat:企业微信-微信客服=知识库
* fix:golangci-lint
* fix:移除非必要的err判断
---------
Co-authored-by: markwang <www.wang61@qq.com >
2023-09-04 20:15:13 +08:00
markwang
06719f77b7
feat:企业微信-微信客服-统计管理 ( #707 )
...
Co-authored-by: markwang <www.wang61@qq.com >
2023-08-31 14:36:22 +08:00
ourines
45ad2ab8ca
调整结构体中CreateTime ( #691 )
...
* fix: 修改FollowInfo结构体中的tag标签为createtime
* fix: 统一CreateTime为int64
* chore: format
* chore: format
2023-06-30 09:54:12 +08:00
Mark
58621cd79d
fix CallbackMessage open_kfid and SyncMsg error ( #672 )
...
* 企业微信微信客服字段同步
* fix ci lint
* fix open_kfid xml Unmarshal error and 'syncMsg: field `open_kfid` unexpected empty string. invalid Request Parameter'
* add struct CallbackMessage xml tag
---------
Co-authored-by: liuyuezhong <liuyuezhong@inke.cn >
2023-04-19 16:21:04 +08:00
Mark
4094adc5b4
企业微信微信客服字段同步 ( #670 )
...
* 企业微信微信客服字段同步
* fix ci lint
---------
Co-authored-by: liuyuezhong <liuyuezhong@inke.cn >
2023-04-18 11:07:06 +08:00
houseme
a8f7a24ff6
feat: improve comment and upgrade golang version 1.16 ( #604 )
...
* feat: improve action config and code comment
* feat: improve comment and upgrade golang version 1.16
* feat: improve import
2022-08-23 10:13:24 +08:00
houseme
adf142dac2
feat: modify redis version to v8.11.5 ( #582 )
...
* [feature] Format the code and improve Mini Program authorization to obtain openid(miniprogram/auth/auth.go Code2Session)
* [feature] CheckEncryptedData (https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.checkEncryptedData.html )
* upgrade json error
* upgrade json error
* [feature] Wallet Transfer returns the pointer object
* feat:Adaptation of new go-redis components
* improve code
* feat:upgrade golangci-lint-action version
* fix
* test ci
* fix
* test ci
* fix
* test
* improve code
* feat:GetPhoneNumber return ptr
* fix: ptr Elem() error
* improve code
* improve code
* improve code
* improve code
* upgrade go version v1.15
* improve .golangci.yml
* feat:modify redis version v8.11.5
Co-authored-by: houseme <houseme@outlook.com >
2022-07-20 11:25:15 +08:00
Bryan
3cbc95732a
企业微信客服消息: 修复发送消息时 MsgID 为空会报错的问题 ( #563 )
2022-04-28 21:59:36 +08:00
houseme
8e81a416c5
Adaptation of new go-redis components ( #546 )
...
* [feature] Format the code and improve Mini Program authorization to obtain openid(miniprogram/auth/auth.go Code2Session)
* [feature] CheckEncryptedData (https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.checkEncryptedData.html )
* upgrade json error
* upgrade json error
* [feature] Wallet Transfer returns the pointer object
* feat:Adaptation of new go-redis components
* improve code
* feat:upgrade golangci-lint-action version
* fix
* test ci
* fix
* test ci
* fix
* test
* improve code
* feat:GetPhoneNumber return ptr
Co-authored-by: houseme <houseme@outlook.com >
2022-04-14 10:07:58 +08:00
Afeyer
74053fe6ef
feat: 微信客服会话变更事件支持查看客服账号ID ( #510 )
2021-11-15 19:16:12 +08:00
Afeyer
dc24ad4262
feat: 微信客服会话状态变更时支持发送回复语 ( #505 )
2021-11-15 17:05:13 +08:00
Afeyer
05ec6a42ae
docs:更新接口消息发送限制说明文档 ( #504 )
2021-11-05 17:37:27 +08:00
Afeyer
efad41bcda
pref: 优化全局错误提示 ( #503 )
2021-11-01 10:07:48 +08:00
Afeyer
3fb288d932
feat: 微信客服支持发送欢迎语 ( #496 )
2021-10-08 19:37:40 +08:00
Afeyer
ab4f427647
feat:微信客服支持获取视频号绑定状态 ( #493 )
2021-09-30 17:31:30 +08:00
Afeyer
e9489625c6
feat:微信客服支持通过接口转接人工会话 ( #492 )
2021-09-30 12:13:10 +08:00
Afeyer
8621e06a01
feat: 完善微信客服常用的错误类型 ( #486 )
...
* feat:微信客服支持向客户发送欢迎语
* chore: go fmt file
* feat:移除空白文件
* doc:完善菜单消息内的注释文档
* feat: 完善微信客服常用的错误类型
* refactor: 优化SDK错误生成函数
2021-09-26 10:38:52 +08:00
Afeyer
c021336a3c
doc:完善菜单消息内的注释文档 ( #479 )
...
* feat:微信客服支持向客户发送欢迎语
* chore: go fmt file
* feat:移除空白文件
* doc:完善菜单消息内的注释文档
2021-09-13 19:20:16 +08:00
Afeyer
d776f5c400
feat:微信客服支持向客户发送欢迎语 ( #478 )
...
* feat:微信客服支持向客户发送欢迎语
* chore: go fmt file
* feat:移除空白文件
2021-09-13 10:07:18 +08:00
Afeyer
bc9f483c8e
feat: 菜单消息支持发送结束文本 ( #477 )
...
* feat:菜单消息支持发送结束文本
Co-authored-by: Afeyer <afeyer@h5base.cn >
2021-09-10 10:08:49 +08:00
houseme
96c1f98944
[feature] Format the code and improve Mini Program authorization to o… ( #473 )
...
* [feature] Format the code and improve Mini Program authorization to obtain openid(miniprogram/auth/auth.go Code2Session)
* [feature] CheckEncryptedData (https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.checkEncryptedData.html )
* upgrade json error
* upgrade json error
Co-authored-by: houseme <houseme@outlook.com >
2021-09-08 11:03:23 +08:00
Afeyer
e1ef3ea160
feat:暴露接待人员ID到消息列表 ( #461 )
...
* 添加微信客服SDK
* polish:优化签名函数
* polish:优化注释内容
* polish:复用已有的Token以及CommonError,移除无用的输出
* polish:复用已有的消息加解密
* fix:修复错误信息被覆盖的问题
* polish:go fmt 文件
* polish:客服链接支持自定义参数并更新注释文档内容
* feat:支持微信客服回调请求的校验和消息的解析,复用原有的Signature和DecryptMsg方法
* feat:对外暴露SDKApiForbidden等错误
可以通过调用升级服务相关接口然后根据该错误判断微信客服配置来源
* feat:添加无效的open_kfid错误信息
* fix: 添加SDKApiNotOpen 错误信息
目前主要用于判断客户是否关闭了API授权,如果客户关闭了API功能导致服务异常,则可以引导用户执行相应的操作重新开启改功能
* feat:暴露接待人员ID到消息列表
无需对消息进行序列化即可直接获取接待人员ID,便于处理接待人员的相关业务,例如:统计接待人员当天应答次数
* feat: 添加SDKNotUseInWeCom错误信息
如果SDK输出当前错误,则说明用户在企业微信后台关闭了微信客服功能,需引导用户重新开启该功能
Co-authored-by: Afeyer <afeyer@h5base.cn >
2021-09-03 16:46:44 +08:00
Afeyer
beb2f9506d
feat: 添加 SDKApiNotOpen 错误信息 ( #448 )
...
* 添加微信客服SDK
* polish:优化签名函数
* polish:优化注释内容
* polish:复用已有的Token以及CommonError,移除无用的输出
* polish:复用已有的消息加解密
* fix:修复错误信息被覆盖的问题
* polish:go fmt 文件
* polish:客服链接支持自定义参数并更新注释文档内容
* feat:支持微信客服回调请求的校验和消息的解析,复用原有的Signature和DecryptMsg方法
* feat:对外暴露SDKApiForbidden等错误
可以通过调用升级服务相关接口然后根据该错误判断微信客服配置来源
* feat:添加无效的open_kfid错误信息
* fix: 添加SDKApiNotOpen 错误信息
目前主要用于判断客户是否关闭了API授权,如果客户关闭了API功能导致服务异常,则可以引导用户执行相应的操作重新开启改功能
Co-authored-by: Afeyer <afeyer@h5base.cn >
2021-08-30 10:13:04 +08:00
Afeyer
c61154105b
feat:对外暴露SDKApiForbidden等错误 ( #445 )
...
* 添加微信客服SDK
* polish:优化签名函数
* polish:优化注释内容
* polish:复用已有的Token以及CommonError,移除无用的输出
* polish:复用已有的消息加解密
* fix:修复错误信息被覆盖的问题
* polish:go fmt 文件
* polish:客服链接支持自定义参数并更新注释文档内容
* feat:支持微信客服回调请求的校验和消息的解析,复用原有的Signature和DecryptMsg方法
* feat:对外暴露SDKApiForbidden等错误
可以通过调用升级服务相关接口然后根据该错误判断微信客服配置来源
2021-08-26 10:00:39 +08:00
Afeyer
917f1817e5
feat:支持微信客服回调请求的校验和消息的解析,复用原有的Signature和DecryptMsg方法 ( #439 )
...
* 添加微信客服SDK
* polish:优化签名函数
* polish:优化注释内容
* polish:复用已有的Token以及CommonError,移除无用的输出
* polish:复用已有的消息加解密
* fix:修复错误信息被覆盖的问题
* polish:go fmt 文件
* polish:客服链接支持自定义参数并更新注释文档内容
* feat:支持微信客服回调请求的校验和消息的解析,复用原有的Signature和DecryptMsg方法
2021-08-19 21:33:14 +08:00
Afeyer
6fdb986911
feat:微信客服链接支持自定义参数 ( #438 )
...
* 添加微信客服SDK
* polish:优化签名函数
* polish:优化注释内容
* polish:复用已有的Token以及CommonError,移除无用的输出
* polish:复用已有的消息加解密
* fix:修复错误信息被覆盖的问题
* polish:go fmt 文件
* polish:客服链接支持自定义参数并更新注释文档内容
2021-08-18 10:55:37 +08:00
Afeyer
8ceabc2d0b
添加微信客服SDK ( #436 )
...
* 添加微信客服SDK
* polish:优化签名函数
* polish:优化注释内容
* polish:复用已有的Token以及CommonError,移除无用的输出
* polish:复用已有的消息加解密
* fix:修复错误信息被覆盖的问题
* polish:go fmt 文件
2021-08-17 10:19:01 +08:00