作者 庄敏学

更新 auth.go 去除网易登录

@@ -479,14 +479,14 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom @@ -479,14 +479,14 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
479 } else if len(loginSvr.PartnerInfo) > 0 { 479 } else if len(loginSvr.PartnerInfo) > 0 {
480 nickName = loginSvr.PartnerInfo[0].PartnerName 480 nickName = loginSvr.PartnerInfo[0].PartnerName
481 } 481 }
482 - if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil {  
483 - log.Error(err)  
484 - return  
485 - } 482 + //if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil {
  483 + // log.Error(err)
  484 + // return
  485 + //}
486 486
487 - rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId)  
488 - rsp.ImToken = imInfo.ImToken  
489 - rsp.Accid, _ = strconv.Atoi(imInfo.ImId) 487 + //rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId)
  488 + //rsp.ImToken = imInfo.ImToken
  489 + //rsp.Accid, _ = strconv.Atoi(imInfo.ImId)
490 rsp.Phone = request.Phone 490 rsp.Phone = request.Phone
491 rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second) 491 rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second)
492 492