1 Star 0 Fork 0

mamh-mixed/go-qywechat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.go 933 Bytes
一键复制 编辑 原始数据 按行查看 历史
闫军辉 提交于 2019-02-27 20:09 . update
package main
import (
"github.com/yanjunhui/chat/crop"
"log"
)
//content := "[P0][OK][192.168.11.26_ofmon][][【critical】与主mysql同步延迟超过10s! all(#3) seconds_behind_master port=3306 0>10][O1 2017-04-17 08:55:00]"
var (
//微信企业号配置相关
//corpID 微信企业号CropID
corpID = "wwc84919127e378d9a"
//EncodingAESKey 微信企业号加密Key
EncodingAESKey = "P8uAU2eYOcCtXtrRCNv3iKxzc5HW6GcKI2Ri1slR3Ih"
client *crop.Client
)
func init() {
client = crop.New(corpID, 1000008, "Hw7Cw_xxqU78NPC9vfRhC0VQ9oBDtYO52W-4T8wt_3A")
}
func main() {
msg := crop.Message{}
msg.ToUser = "yanjunhui"
msg.MsgType = "text"
msg.Text = crop.Content{Content: "测试"}
err := client.Send(msg)
if err != nil {
log.Println(err)
}
/*
for i := 0; i <= 60 ; i++{
msg.Text = crop.Content{Content: fmt.Sprintf("%d", i)}
err := client.Send(msg)
if err != nil {
log.Println(err)
}
}
*/
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mamh-mixed/go-qywechat.git
git@gitee.com:mamh-mixed/go-qywechat.git
mamh-mixed
go-qywechat
go-qywechat
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385