zwxi 11 ay önce
ebeveyn
işleme
fe3f3db2b5
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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 {