Signed-off-by: dongl <2725096176@qq.com>
This commit is contained in:
dongl 2022-07-19 10:01:48 +08:00
parent 3a809bfadb
commit 569e303a74
2 changed files with 9 additions and 2 deletions

View File

@ -7,12 +7,15 @@ import (
"time" "time"
) )
//获取
self, err := getCurrentUser()
func SignInBegin(msg *openwechat.Message) { func SignInBegin(msg *openwechat.Message) {
// 发送到微信 // 发送到微信
self.SendTextToGroup("叫啥好呢", "打卡程序启动成功!") self.SendTextToGroup("叫啥好呢", "打卡程序启动成功!" + err)
} }
func SignInEnd(msg *openwechat.Message){ func SignInEnd(msg *openwechat.Message){
// 发送到微信 // 发送到微信
self.SendTextToGroup("叫啥好呢", "打卡程序结束运行成功!") self.SendTextToGroup("叫啥好呢", "打卡程序结束运行成功!" + err)
} }

View File

@ -53,6 +53,10 @@ func main() {
fmt.Println(err) fmt.Println(err)
return return
} }
func getCurrentUser(){
return self
}
// 获取所有的好友 // 获取所有的好友
friends, err := self.Friends() friends, err := self.Friends()