作者 庄敏学

更新 auth.go

@@ -366,7 +366,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom @@ -366,7 +366,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
366 366
367 var ( 367 var (
368 transactionContext, _ = factory.CreateTransactionContext(nil) 368 transactionContext, _ = factory.CreateTransactionContext(nil)
369 - imInfo *domain.ImInfo 369 + //imInfo *domain.ImInfo
370 loginSvr = domain_service.NewPgLoginService(transactionContext) 370 loginSvr = domain_service.NewPgLoginService(transactionContext)
371 ) 371 )
372 372
@@ -473,12 +473,12 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom @@ -473,12 +473,12 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
473 } 473 }
474 474
475 // 初始化网易IM信息 475 // 初始化网易IM信息
476 - var nickName string  
477 - if len(loginSvr.Users) > 0 {  
478 - nickName = loginSvr.Users[0].Name  
479 - } else if len(loginSvr.PartnerInfo) > 0 {  
480 - nickName = loginSvr.PartnerInfo[0].PartnerName  
481 - } 476 + //var nickName string
  477 + //if len(loginSvr.Users) > 0 {
  478 + // nickName = loginSvr.Users[0].Name
  479 + //} else if len(loginSvr.PartnerInfo) > 0 {
  480 + // nickName = loginSvr.PartnerInfo[0].PartnerName
  481 + //}
482 //if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil { 482 //if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil {
483 // log.Error(err) 483 // log.Error(err)
484 // return 484 // return