You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

[![Build Status](https://ci.yangqiao.org/api/badges/go/WechatGateWay/status.svg)](https://ci.yangqiao.org/go/WechatGateWay)
![](https://i.niupic.com/images/2022/09/17/a5ia.png)
![](https://cnjdmh6kwm1w.compat.objectstorage.ap-seoul-1.oraclecloud.com/s3/2022/07/29d6e88c6061f4d56315cb36f2c66036.png)
# 接收消息与事件
https://developer.work.weixin.qq.com/document/10514
微信消息加解密库
https://github.com/go-laoji/wxbizmsgcrypt
https://github.com/easychen/wecomchan/blob/main/go-wecomchan/wecomchan.go
## build arm64 on oracle k8s
```bash
cd /root
rm -rf WechatGateWay
git clone https://git.sre.ink/go/WechatGateWay.git
cd WechatGateWay
make build-linux-arm64
```
## k8s manifests
```
---
manifests/Deployment.yaml
manifests/Service.yaml
manifests/ingress.yaml
---
```
old makefile:
```
/bin/cp -arf /root/wx.yaml application.yaml
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go build -v -a -o wechat.bin main.go
/bin/cp -arf /usr/bin/kubectl .
/bin/cp -arf /root/.kube/config .
docker build -t sre/wechatgateway:arm64 .
kubectl rollout restart deployment -n sre wehcat-gateway
```