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.
go-fly/controller/shout.go

21 lines
542 B

package controller
import (
"fmt"
"github.com/taoshihan1991/imaptool/config"
"github.com/taoshihan1991/imaptool/tools"
"log"
)
func SendServerJiang(content string)string{
conf:=config.CreateConfig()
if config.ServerJiang=="" || !conf.NoticeServerJiang{
log.Println("do not notice serverjiang:",config.ServerJiang,conf.NoticeServerJiang)
return ""
}
sendStr:=fmt.Sprintf("%s,访客来了",content)
desp:="[登录](https://gofly.sopans.com/main)";
res:=tools.Get(config.ServerJiang+"?text="+sendStr+"&desp="+desp)
return res
}