lizhuang
b639d2235d
Add JSSDK context method functionality ( #828 )
...
* Add JSSDK context method functionality
* 善JSSDK上下文方法,并添加测试文件
* feat: 完善JSSDK上下文方法,保证协程安全,并添加测试文件
* 修改 import 包分组处理
* feat: 修改测试文件中 fmt.Print -> t.Log
* 删除空行
2025-04-23 14:14:16 +08:00
mahongran
010e49c35c
fix: work js-api signature ( #818 )
...
* 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(work): add JsSdk method for JavaScript SDK integration
- 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.
* fix gofmt
* refactor(jsapi): simplify signature generation in GetConfig and GetAgentConfig methods
- Replaced the use of strconv to format the signature string with fmt.Sprintf for improved readability.
- Updated the signature generation logic in both GetConfig and GetAgentConfig methods to use a single formatted string.
This change enhances code clarity and maintains functionality in the signature generation process.
* fix gofmt
* fix gofmt
* fix gofmt
* fix gofmt
* refactor(js): correct initialization of Config in GetConfig method
- Removed redundant initialization of the Config variable and ensured it is instantiated correctly before use.
- This change improves code clarity and maintains the intended functionality of the GetConfig method.
2025-01-14 17:24:42 +08:00
CyJaySong
3fbe8634d9
officeaccount 和 miniprogram 添加UseStableAK 配置项 ( #788 )
2024-11-23 18:25:24 +08:00
oah8
c1770130a0
add stream_upload_source ( #786 )
...
Co-authored-by: _oah <57302072@qq.com >
2024-08-22 14:21:58 +08:00
Ji Luo Yang
05ac7148d4
feat: 公众号新增模板接口,支持模板参数传递 ( #783 )
...
* feat: 公众号新增模板接口,支持模板参数传递
* fix: 公众号新增模板接口,合并定义参数
* fix: 公众号新增模板接口,统一代码风格
---------
Co-authored-by: yangj23 <yangj23@mingyuanyun.com >
2024-07-16 21:02:59 +08:00
sam
6b3532cc2d
feat: Material 增加 AddMaterialFromReader 与 AddVideoFromReader 方法 ( #780 )
...
* feat: Material 增加 AddMaterialFromReader 与 AddVideoFromReader 方法
* update: 调整 PostFileFromReader 参数。
2024-07-16 15:43:18 +08:00
markwang
d28ca4f334
feat: optimized-error-handling&remove unused constant ( #772 )
...
* feat: optimized-error-handling&remove unused constant
* feat: optimized-error-handling
---------
Co-authored-by: markwang <www.wang61@qq.com >
2024-04-16 10:51:51 +08:00
Leo
74795e86ee
fix:群发视频消息及预览图片消息错误修复 ( #774 )
...
* fix:群发图片预览消息无效
* fix:群发视频消息参数名称错误
---------
Co-authored-by: wuweichao <wuweichao@dobest.com >
2024-03-28 16:28:03 +08:00
houseme
56a3734546
Feature: improve code message subscribe ( #739 )
...
* fix
* feat(miniapp): 小程序订阅消息 (#429 )
1. 用户订阅消息服务端回调处理
2. 用户订阅消息订阅通知事件推送
Co-authored-by: houseme <qzg40737@163.com >
* feat: improve subscribe msg
* feat: add v1.21 and feature branch
* feat: improve code for subscribe
* test
* test
* fix
* fix
* improve comment
* improve code for message
* improve code for unmarshal message
* improve code for message
---------
Co-authored-by: Ralph Maas <stuchilde@outlook.com >
2023-11-02 09:39:10 +08:00
施国鹏
d4fd145bb5
add: oauth 添加 ctx, 且增加 GetUserInfoByCodeCtx 方法快速获取用户信息 ( #747 )
...
* add: oauth 添加 ctx, 且增加 GetUserInfoByCodeCtx 方法快速获取用户信息
* fix: code style
* fix: white space
---------
Co-authored-by: seth-shi <shiguopeng@mampod.com >
2023-11-02 09:38:42 +08:00
houseme
26b0aacb4c
feat: create mini program virtual payment ( #709 )
2023-08-21 22:09:30 +08:00
txws
5d0e32e2ea
微信开放平台 消息与事件url 添加result_info ( #696 )
...
* add result_info
* edit result_info
* edit-01 result_info
* 开放平台message添加小程序名称审核字段
2023-06-30 09:53:01 +08:00
okhowang
86cbd8c0b2
feat: 微信回调消息增加菜单ID字段 ( #694 )
...
close #693
2023-06-16 18:07:15 +08:00
sam
31f8e24994
feat: 小程序/公众号增加 openApi 管理。 ( #685 )
...
* feat: 小程序/公众号增加 openApi 管理。
* update: 修改字段名大小写。
* update: 修改字段名大小写。
* style: import 换行。
* update: openApi 管理放到内部包中。
2023-06-04 21:57:15 +08:00
sam
ae1b056515
feat: 公众号: 批量获取用户信息。 ( #686 )
...
* feat: 公众号: 批量获取用户信息。
* update: 公众号: 调整批量获取用户方法的输入参数。
* update: 公众号: 调整批量获取用户方法的输入参数。
2023-05-31 21:55:21 +08:00
Guo yongrong
8bc1474777
增加发送图文消息(点击跳转到图文消息页面)使用通过 “发布” 系列接口得到的 article_id ( #664 )
...
Co-authored-by: handson@intonead.com <gyr@3332502!>
2023-04-03 18:13:25 +08:00
johnpoint
9c0189340b
pref: 变量命名 & url ( #650 )
2023-02-14 12:04:44 +08:00
realpg
d39615f2fa
补全模板消息API中遗漏的 ‘防重入ID’ 参数 ( #651 )
...
client_msg_id:
防重入id。
对于同一个openid + client_msg_id, 只发送一条消息,10分钟有效,超过10分钟不保证效果。若无防重入需求,可不填
2023-02-11 23:50:33 +08:00
daguang
d1d034eb95
oauth add snapshot user mark field ( #643 )
2023-01-29 11:58:00 +08:00
Mr. Yang
86ceb6af2f
增加小程序审核结果回调通知 ( #630 )
...
Co-authored-by: yanglaosan <yang88can@163.com >
2022-10-17 16:52:19 +08:00
okhowang
5380d5bee7
GetAccessToken支持Context ( #618 )
2022-09-29 14:33:53 +08:00
gzylg
88fc6465bb
公众号用户黑名单管理 ( #609 )
2022-08-31 22:50:51 +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
Wangrong
37f9e981d6
客服管理功能添加 ( #600 )
2022-08-13 12:24:12 +08:00
Wangrong
eb3dbf1646
增加订阅通知功能 ( #599 )
...
* fix issue #586 #543
* add officialaccount subscribe function
* update doc for officialaccount
* add comments
Co-authored-by: Wang Rong <wangron@tesla.com >
2022-08-08 10:03:56 +08:00
Wangrong
27e18b6958
fix officialaccount part in Issue 590 ( #591 )
...
* fix issue #586 #543
* fix issue #590 in officialaccount
Co-authored-by: Wang Rong <wangron@tesla.com >
2022-08-08 10:02:24 +08:00
Wangrong
252fc4838b
Add Event Type ( #596 )
...
* fix issue #586 #543
* add EventViewMiniprogram wechat EventType
Co-authored-by: Wang Rong <wangron@tesla.com >
2022-08-04 20:33:27 +08:00
Wangrong
cc9be30ed1
fix issue #586 #543 ( #589 )
...
Co-authored-by: Wang Rong <wangron@tesla.com >
2022-07-26 14:10:55 +08:00
yucui xiao
e952b1d55a
微信小程序回调消息兼容json格式 ( #560 )
2022-04-26 15:59:51 +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
save95
5c4b28acee
add: 增加公众号「发布能力」接口(#530) ( #531 )
...
* add: 增加公众号「发布能力」接口(#530)
* fix: go lint
* fix: 修复响应结构体及解析方式
* add: 增加公众号「草稿箱」接口(#530)
* fix: text
* mod: 增加 发布任务完成 消息事件
Co-authored-by: luoyu <luoyu@medlinker.com >
2022-02-14 10:19:55 +08:00
杨成锴
8c87c49f2a
update: 统一消息类型 ( #511 )
2021-12-03 20:45:11 +08:00
ixugo
566c3c27cb
增加订阅通知事件 ( #509 )
2021-11-15 17:06:50 +08:00
owen.gxz
fd96154231
增加注册审核事件推送消息 ( #487 )
...
* 消息类型增加快速注册企业小程序回调参数
* 代码格式化
* 更改常量名称
* 更改注解
Co-authored-by: 高震 <gaozhen@gaozhendeMacBook-Pro.local >
2021-09-26 14:15:31 +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
ZmJ
b535cd116a
feat: add/delete subscribe template ( #449 )
2021-08-30 10:12:23 +08:00
ZmJ
d392ff776b
补充 添加/删除 公众号模板消息接口 ( #440 )
...
* provide add/delete officialaccount template api
* use util.DecodeWithError check errcode
2021-08-25 10:18:49 +08:00
ZmJ
fc1fc7e84e
快捷获取公众号订阅消息对象 ( #435 )
...
* 快捷获取公众号订阅消息对象
* fix: typo subscrib -> subscribe
2021-08-16 14:39:44 +08:00
lanbiaowan
7a513080a8
addNews return error ( #401 )
...
Co-authored-by: p_biaolan <biao.lan@qingteng.cn >
2021-06-07 10:03:56 +08:00
ForrestSu
34f1335d17
feat: 优化MixMessage采用指针传参,减少2次拷贝 ( #394 )
2021-04-18 18:55:32 +08:00
ForrestSu
fb1aa60ae8
feat(officialaccount): 补充群发消息event ( #393 )
...
* feat(officialaccount): 补充群发消息event
* feat: 解析群发结果通知中的成功失败数
2021-04-18 18:50:24 +08:00
ForrestSu
18abebe4de
fix: 微信群发预览接口: 只支持单个用户,默认发给第一个 ( #392 )
2021-04-18 18:48:56 +08:00
水煮牛肉
d1241790cb
增加ocr相关接口 ( #388 )
...
Co-authored-by: qiq@pvc123.com <qiq@pvc123.com >
2021-04-12 15:29:14 +08:00
bugstark
64c2de7ab4
Add subscribe message #371 ( #376 )
...
* Fix subscribe #371
* Fix subscribe #371
* 规范struct元素名称
2021-03-05 11:27:05 +08:00
GargantuaX
e7fdcf9534
支持公众号账号迁移,获取openID变化接口 ( #370 )
...
* * 公众号菜单管理,set相关函数,返回btn本身,方便以字面量的方式创建多个菜单,更直观,方便管理
* * golangci-lint fix
* * 获取二维码ticket接口没有往上抛接口错误
* * 增加GetOpenID方法,以获取消息的生产用户openID
* * 支持公众号账号迁移,获取openID变化接口
* * bugfix
* * golint fix
* * golint fix
2021-03-01 15:38:54 +08:00
GargantuaX
05907d152e
消息增加GetOpenID方法 ( #368 )
...
* * 公众号菜单管理,set相关函数,返回btn本身,方便以字面量的方式创建多个菜单,更直观,方便管理
* * golangci-lint fix
* * 获取二维码ticket接口没有往上抛接口错误
* * 增加GetOpenID方法,以获取消息的生产用户openID
2021-02-19 15:50:02 +08:00
kaiiak
398f2ec6ae
long url to short url ( #367 )
...
* long url to short url
* Decode by util.DecodeWithError
2021-02-08 09:42:46 +08:00
GargantuaX
e8fb058740
* 公众号菜单管理,增加new相关函数,老的set相关函数,返回btn本身,以便用字面量的方式创建多级菜单,更直观,方便管理 ( #365 )
...
* * 公众号菜单管理,set相关函数,返回btn本身,方便以字面量的方式创建多个菜单,更直观,方便管理
* * golangci-lint fix
* * 获取二维码ticket接口没有往上抛接口错误
2021-02-07 09:50:53 +08:00
silenceper
2eae660002
修复SetMenuByJSON和AddConditionalByJSON报错 ( #353 )
...
* change PostJSON to HTTPPost
* change PostJSON to HTTPPost
2020-12-31 13:52:13 +08:00
silenceper
c0da806e03
update golangci ( #349 )
...
* update golangci
2020-11-26 12:25:57 +08:00