Browse Source

no message

xingzai 1 year ago
parent
commit
421498fb1d
2 changed files with 5 additions and 0 deletions
  1. 1 0
      controllers/wechat.go
  2. 4 0
      services/user.go

+ 1 - 0
controllers/wechat.go

@@ -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 = "获取用户信息失败"

+ 4 - 0
services/user.go

@@ -269,6 +269,10 @@ func BindWxUser(openid, mobile, email, countryCode string) (wxUser *models.WxUse
 	return
 }
 
+//func init() {
+//	fmt.Println(GetWxUserItemByOpenId("ouw2U62cUWNe97e96AZ5jxeAgrJM"))
+//}
+
 // 微信登录
 func WxLogin(code, openId, unionId string, wxUserInfo *WxUserInfo) (token string, userId, firstLogin, permission int, err error) {
 	if unionId == "" {