作者 庄敏学

fixed

@@ -367,7 +367,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom @@ -367,7 +367,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
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
373 // 转换手机号码 373 // 转换手机号码
@@ -487,6 +487,9 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom @@ -487,6 +487,9 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom
487 //rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId) 487 //rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId)
488 //rsp.ImToken = imInfo.ImToken 488 //rsp.ImToken = imInfo.ImToken
489 //rsp.Accid, _ = strconv.Atoi(imInfo.ImId) 489 //rsp.Accid, _ = strconv.Atoi(imInfo.ImId)
  490 + rsp.CsAccountID = ""
  491 + rsp.ImToken = ""
  492 + rsp.Accid = 1
490 rsp.Phone = request.Phone 493 rsp.Phone = request.Phone
491 rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second) 494 rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second)
492 495