正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论