zwxi 11 months ago
parent
commit
fe3f3db2b5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/wechat.go

+ 3 - 3
controllers/wechat.go

@@ -130,9 +130,9 @@ func (this *WechatController) SendCategoryTemplateMsg() {
 		br.Msg = "openid为空"
 		return
 	}
-	if sendItem.WxAppId == "" {
-		sendItem.WxAppId = utils.WxMfyxAppId   //默认是买方研选公众号
-	}
+
+	sendItem.WxAppId = utils.WxMfyxAppId   //默认是买方研选公众号
+
 	go func() {
 		err = services.SendWxCategoryTemplateMsgCygx(sendItem)
 		if err != nil {