WH01243 1 tydzień temu
rodzic
commit
29c97cd8b6
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      client/service/wx.go

+ 3 - 0
client/service/wx.go

@@ -197,6 +197,9 @@ func userJudge(c *wcf.RpcContact) (bool, string, string) {
 
 // 发送文本信息
 func sendText(content, wxId, appellation string) (bool, error) {
+	if appellation != "" {
+		content = fmt.Sprintf("%s,%s", appellation, content)
+	}
 	if app.WxClient.SendTxt(content, wxId, nil) != 0 {
 		return false, fmt.Errorf(fmt.Sprintf("%s%s文字消息发送失败", content, wxId))
 	}