作者 庄敏学

更新 auth.go

... ... @@ -366,7 +366,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
var (
transactionContext, _ = factory.CreateTransactionContext(nil)
imInfo *domain.ImInfo
//imInfo *domain.ImInfo
loginSvr = domain_service.NewPgLoginService(transactionContext)
)
... ... @@ -473,12 +473,12 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
}
// 初始化网易IM信息
var nickName string
if len(loginSvr.Users) > 0 {
nickName = loginSvr.Users[0].Name
} else if len(loginSvr.PartnerInfo) > 0 {
nickName = loginSvr.PartnerInfo[0].PartnerName
}
//var nickName string
//if len(loginSvr.Users) > 0 {
// nickName = loginSvr.Users[0].Name
//} else if len(loginSvr.PartnerInfo) > 0 {
// nickName = loginSvr.PartnerInfo[0].PartnerName
//}
//if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil {
// log.Error(err)
// return
... ...