mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-04 21:02:25 +08:00
* merge branch release-2.0 to v2 (#450) * feat: add/delete subscribe template (#449) * 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> Co-authored-by: ZmJ <wzmmmmj@gmail.com> Co-authored-by: Afeyer <1500527791@qq.com> Co-authored-by: Afeyer <afeyer@h5base.cn> * Update go.yml (#452) * 修正字段问题 (#451) fix #443 * fix linux build failed when cgo disable (#453) Co-authored-by: ZmJ <wzmmmmj@gmail.com> Co-authored-by: Afeyer <1500527791@qq.com> Co-authored-by: Afeyer <afeyer@h5base.cn>
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ master,release-*,v2 ]
|
|
pull_request:
|
|
branches: [ master,release-*,v2 ]
|
|
|
|
jobs:
|
|
golangci:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.15.x]
|
|
name: golangci-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
|
version: v1.31
|
|
build:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
redis:
|
|
image: redis
|
|
ports:
|
|
- 6379:6379
|
|
options: --entrypoint redis-server
|
|
memcached:
|
|
image: memcached
|
|
ports:
|
|
- 11211:11211
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.13
|
|
id: go
|
|
- name: Test
|
|
run: go test -v -race ./...
|