|
@@ -71,13 +71,14 @@ func (b *WechatApi) Req(c *gin.Context) {
|
|
} else {
|
|
} else {
|
|
global.GVA_LOG.Info("用户已存在", zap.Any("err", err), zap.Any("sysUser", sysUser))
|
|
global.GVA_LOG.Info("用户已存在", zap.Any("err", err), zap.Any("sysUser", sysUser))
|
|
}
|
|
}
|
|
- text := message.NewText("【经开创城进行时】感谢您的关注!授权请点击此链接:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx66e0fbb5a735bcc4&redirect_uri=" + url.QueryEscape(
|
|
|
|
- global.GVA_CONFIG.Wxxcx.AuthUrl+"/wechat/auth") + "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")
|
|
|
|
|
|
+
|
|
|
|
+ text := message.NewText("【经开创城进行时】感谢您的关注! \r\n <a href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx66e0fbb5a735bcc4&redirect_uri=" + url.QueryEscape(
|
|
|
|
+ global.GVA_CONFIG.Wxxcx.AuthUrl) + "/wechat/auth&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'>点我授权</a>")
|
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
|
}
|
|
}
|
|
if msg.Content == "授权" {
|
|
if msg.Content == "授权" {
|
|
- text := message.NewText("授权请点击此链接:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx66e0fbb5a735bcc4&redirect_uri=" + url.QueryEscape(
|
|
|
|
- global.GVA_CONFIG.Wxxcx.AuthUrl+"/wechat/auth") + "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")
|
|
|
|
|
|
+ text := message.NewText("<a href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx66e0fbb5a735bcc4&redirect_uri=" + url.QueryEscape(
|
|
|
|
+ global.GVA_CONFIG.Wxxcx.AuthUrl) + "/wechat/auth&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'>点我授权</a>")
|
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
|
}
|
|
}
|
|
global.GVA_LOG.Info("用户消息", zap.Any("openId", msg.FromUserName), zap.Any("msg", msg))
|
|
global.GVA_LOG.Info("用户消息", zap.Any("openId", msg.FromUserName), zap.Any("msg", msg))
|