|
@@ -2,6 +2,7 @@ package services
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
+ "fmt"
|
|
|
"hongze/hongze_api/models"
|
|
|
"hongze/hongze_api/utils"
|
|
|
"strconv"
|
|
@@ -220,7 +221,7 @@ func BindWxUser(openid, mobile, email string, registerPlatform int) (wxUser *mod
|
|
|
}
|
|
|
//如果存在该手机号/邮箱,那么需要校验
|
|
|
if userRecord.UserId > 0 && userRecord.UserId != userId {
|
|
|
- err = errors.New("用户已绑定,不允许重复绑定")
|
|
|
+ err = errors.New(fmt.Sprint("用户已绑定其他账户,已绑定的用户编号:", userRecord.UserId, ",不允许重复绑定"))
|
|
|
return
|
|
|
}
|
|
|
if userRecord.UserId == 0 {
|