boweniac 1 week ago
parent
commit
ea215d6504
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hook/message.go

+ 1 - 1
hook/message.go

@@ -28,7 +28,7 @@ func (h *Hook) ConfigureMsgRecive(isEnable string, url string) (err error) {
 
 // SendTextMsg 发送微信文本消息
 func (h *Hook) SendTextMsg(wxid, msg, wxWxid string) error {
-	if h.ServerIp == "" {
+	if h.ServerIp == "" || h.ServerIp == "0" {
 		conn, err := h.connWorkPhone()
 		if err != nil {
 			err = fmt.Errorf("SendTextMsg failed")