@@ -36,6 +36,7 @@ func (this *WechatCommonController) WechatLogin() {
br.ErrMsg = "Code 为空"
return
}
+ return
wxInfo, err := weapp.Login(utils.WxAppId, utils.WxAppSecret, code)
if err != nil {
br.Msg = "获取用户信息失败"
@@ -269,6 +269,10 @@ func BindWxUser(openid, mobile, email, countryCode string) (wxUser *models.WxUse
+//func init() {
+// fmt.Println(GetWxUserItemByOpenId("ouw2U62cUWNe97e96AZ5jxeAgrJM"))
+//}
+
// 微信登录
func WxLogin(code, openId, unionId string, wxUserInfo *WxUserInfo) (token string, userId, firstLogin, permission int, err error) {
if unionId == "" {