...
|
...
|
@@ -35,7 +35,7 @@ func RequestUCenterLogin(account, password string) (*ResponseLogin, error) { |
|
|
func RequestUCenterAddUser(phone string, nickname string, avatar string) (*ResponseAddUser, error) {
|
|
|
|
|
|
if len(avatar) <= 0 {
|
|
|
avatar = config.MConfig.FileHost + config.MConfig.FileHostPath + "/avatar_default.go"
|
|
|
avatar = config.MConfig.FileHost + config.MConfig.FileHostPath + "/avatar_default.png"
|
|
|
}
|
|
|
var ucenterReturn *ResponseAddUser
|
|
|
param := RequestAddUser{
|
...
|
...
|
@@ -58,7 +58,7 @@ func RequestUCenterAddUser(phone string, nickname string, avatar string) (*Respo |
|
|
}
|
|
|
if !(ucenterReturn.Code == ResponseCode0 &&
|
|
|
ucenterReturn.Msg == ResponseMsgOk) {
|
|
|
return nil, protocol.NewErrWithMessage("10021")
|
|
|
return nil, protocol.NewErrWithMessage("10039")
|
|
|
}
|
|
|
return ucenterReturn, nil
|
|
|
} |
...
|
...
|
|