zwxi 1 yıl önce
ebeveyn
işleme
6531735059
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      controllers/wechat.go

+ 1 - 1
controllers/wechat.go

@@ -45,7 +45,7 @@ func (this *WechatCommonController) WechatLoginByGzh() {
 	}
 	if item.Errcode != 0 {
 		br.Msg = "获取用户信息失败"
-		br.ErrMsg = "获取access_token 失败 errcode:" + strconv.Itoa(item.Errcode) + " ;errmsg:" + item.Errmsg
+		br.ErrMsg = "获取access_token 失败 errcode:" + strconv.Itoa(item.Errcode) + " ;errmsg:" + item.Errmsg+"appid:" + utils.WxPublicAppId+"secret:"+utils.WxPublicAppSecret
 		return
 	}
 	openId := item.Openid