瀏覽代碼

fix:修改小程序的appid

zqbao 10 月之前
父節點
當前提交
10a4fc3033
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      controllers/wechat.go
  2. 0 0
      rdlucklog/202406/20240617.http.log

+ 3 - 1
controllers/wechat.go

@@ -150,8 +150,10 @@ func (this *WeChatController) SendTemplateMsg() {
 	sendMap["keyword2"] = map[string]interface{}{"value": report.ContentSub, "color": "#173177"}
 	sendMap["keyword3"] = map[string]interface{}{"value": report.PublishTime, "color": "#173177"}
 	sendMap["keyword4"] = map[string]interface{}{"value": report.Abstract, "color": "#173177"}
+	var WxAppId = `wxb059c872d79b9967`
+	// var WxAppSecret = `1737c73e9f69a21de1a345b8f0800258`
 	sendMap["miniprogram"] = map[string]string{
-		"appid":    utils.WX_MINI_APPID,
+		"appid":    WxAppId,
 		"pagepath": fmt.Sprintf("pages-report/reportDetail/index?id=%d", report.Id),
 	}
 	err = services.SendMultiTemplateMsg(sendMap, openIds, 1)

+ 0 - 0
rdlucklog/202406/20240617.http.log