|
@@ -54,9 +54,9 @@ func (c *WeChatCommon) WeChatLogin() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- token, adminWx, err := services.WxLogin(utils.WxPlatform, item, wxUserInfo)
|
|
|
+ token, adminWx, err, errMsg := services.WxLogin(utils.WxPlatform, item, wxUserInfo)
|
|
|
if err != nil {
|
|
|
- c.FailWithMessage("微信登录失败", "微信登录失败,err:"+err.Error())
|
|
|
+ c.FailWithMessage(errMsg, "微信登录失败,err:"+err.Error())
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -148,9 +148,9 @@ func (c *WeChatCommon) WxAppLogin() {
|
|
|
fmt.Println("openId", wxInfo.OpenID)
|
|
|
fmt.Println("unionId", wxInfo.UnionID)
|
|
|
|
|
|
- token, adminWx, err := services.WxLogin(utils.WxPlatform2, item, wxUserInfo)
|
|
|
+ token, adminWx, err, errMsg := services.WxLogin(utils.WxPlatform2, item, wxUserInfo)
|
|
|
if err != nil {
|
|
|
- c.FailWithMessage("微信登录失败", "微信登录失败,err:"+err.Error())
|
|
|
+ c.FailWithMessage(errMsg, "微信登录失败,err:"+err.Error())
|
|
|
return
|
|
|
}
|
|
|
|