|
@@ -121,7 +121,7 @@ func ModifyWxUserSessionKey(sessionKey string, userId int) (err error) {
|
|
|
//添加用户信息
|
|
|
func ModifyWxUserInfo(unionId, nickName, province, city, country, avatar string, gender, userId int) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `UPDATE wx_user SET union_id=?,unionid=?,nick_name=?,sex=?,province=?,city=?,country=?,headimgurl=?, WHERE user_id=? `
|
|
|
+ sql := `UPDATE wx_user SET union_id=?,unionid=?,nick_name=?,sex=?,province=?,city=?,country=?,headimgurl=? WHERE user_id=? `
|
|
|
_, err = o.Raw(sql, unionId, unionId, nickName, gender, province, city, country, avatar, userId).Exec()
|
|
|
return
|
|
|
}
|
|
@@ -164,7 +164,6 @@ func ModifyUsersMobile(usersId int, phoneNumber string) (err error) {
|
|
|
}
|
|
|
|
|
|
type WxGetPhoneNumberResp struct {
|
|
|
- Authorization string `description:"登陆凭证,后续接口调用时,带在请求头里面Key:Authorization"`
|
|
|
PhoneNumber string `description:"用户绑定的手机号(国外手机号会有区号)"`
|
|
|
PurePhoneNumber string `description:"没有区号的手机号"`
|
|
|
CountryCode string `description:"区号"`
|