This commit is contained in:
cdle
2021-10-29 19:01:44 +08:00
parent cabd8e010b
commit 8af9ed9fe4
+4
View File
@@ -154,6 +154,10 @@ func init() {
robot_wxid = jms.RobotWxid
wx.Set("robot_wxid", robot_wxid)
}
if wx.Get("api_url") == "" {
ip, _ := c.RemoteIP()
wx.Set("api_url", fmt.Sprintf("http://%s:80", ip.String())) //
}
core.Senders <- &Sender{
value: jms,
}