Browse Source

修改uniquecode

xiexiaoyuan 2 years ago
parent
commit
40d7145c74
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/wechat_send_msg.go

+ 3 - 0
services/wechat_send_msg.go

@@ -44,6 +44,9 @@ func SendWxTemplateMsg(sendInfo *models.SendWxTemplate) (err error) {
 	sendMap := make(map[string]interface{})
 	sendData := make(map[string]interface{})
 	var uniqueCodeStr string
+	if sendInfo.WxAppId != "" {
+		uniqueCodeStr += sendInfo.WxAppId
+	}
 	if sendInfo.First != "" {
 		sendData["first"] = map[string]interface{}{"value": sendInfo.First, "color": "#173177"}
 		uniqueCodeStr += sendInfo.First