zwxi 11 months ago
parent
commit
e0af2b14b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/wechat_send_msg_cygx.go

+ 1 - 1
services/wechat_send_msg_cygx.go

@@ -369,7 +369,7 @@ func SendWxCategoryTemplateMsgCygx(sendInfo *models.SendWxCategoryTemplate) (err
 		if strings.Contains(sendInfo.RedirectUrl, "http") || strings.Contains(sendInfo.RedirectUrl, "https") || sendInfo.RedirectTarget == 0 {
 			sendMap["url"] = sendInfo.RedirectUrl
 		} else {
-			sendMap["miniprogram"] = map[string]interface{}{"appid": utils.WxMfyxAppId, "pagepath": sendInfo.RedirectUrl}
+			sendMap["miniprogram"] = map[string]interface{}{"appid": utils.WxMfyxAppId, "page": sendInfo.RedirectUrl}
 		}
 		uniqueCodeStr += sendInfo.RedirectUrl
 	}