Browse Source

fix:修改发送消息逻辑

zqbao 9 months ago
parent
commit
5d70ae1b5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/wechat_send_msg.go

+ 1 - 1
services/wechat_send_msg.go

@@ -29,7 +29,7 @@ type ClearQuotaResponse struct {
 func SendMiniProgramReportWxMsg(reportId int) (err error) {
 	var msg string
 	reportIdStr := strconv.Itoa(reportId)
-	if utils.BusinessCode != utils.BusinessCodeRelease && utils.BusinessCode != utils.BusinessCodeSandbox && utils.BusinessCode != utils.BusinessCodeDebug {
+	if utils.ETAMiniBridgeUrl != "" {
 		err = third.DwSendTemplatedMsg(reportId)
 		return
 	}