正在显示
1 个修改的文件
包含
7 行增加
和
5 行删除
@@ -487,6 +487,8 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom | @@ -487,6 +487,8 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom | ||
487 | v = map[string]interface{}{"center": rsp} | 487 | v = map[string]interface{}{"center": rsp} |
488 | } | 488 | } |
489 | 489 | ||
490 | + v = map[string]interface{}{"center": rsp} | ||
491 | + | ||
490 | err = transactionContext.CommitTransaction() | 492 | err = transactionContext.CommitTransaction() |
491 | return | 493 | return |
492 | } | 494 | } |
@@ -529,15 +531,15 @@ func CompaniesLoginByCredential(header *protocol.RequestHeader, request *protoco | @@ -529,15 +531,15 @@ func CompaniesLoginByCredential(header *protocol.RequestHeader, request *protoco | ||
529 | loginSvr.Init(claim.Phone) | 531 | loginSvr.Init(claim.Phone) |
530 | 532 | ||
531 | // 判断是否高管 | 533 | // 判断是否高管 |
532 | - ok, _ := loginSvr.CheckIsSenior(claim.Phone, claim.CompanyId) | 534 | + //ok, _ := loginSvr.CheckIsSenior(claim.Phone, claim.CompanyId) |
533 | 535 | ||
534 | rsp.Partner, _ = loginSvr.PartnerStaticInfo() | 536 | rsp.Partner, _ = loginSvr.PartnerStaticInfo() |
535 | rsp.Manager, _ = loginSvr.ManagerStaticInfo() | 537 | rsp.Manager, _ = loginSvr.ManagerStaticInfo() |
536 | 538 | ||
537 | - if !ok { // 非高管普通用户 | ||
538 | - rsp.Partner.(map[string]interface{})["companys"] = rsp.Manager.(map[string]interface{})["companys"] | ||
539 | - rsp.Manager.(map[string]interface{})["companys"] = []struct{}{} | ||
540 | - } | 539 | + //if !ok { // 非高管普通用户 |
540 | + // rsp.Partner.(map[string]interface{})["companys"] = rsp.Manager.(map[string]interface{})["companys"] | ||
541 | + // rsp.Manager.(map[string]interface{})["companys"] = []struct{}{} | ||
542 | + //} | ||
541 | 543 | ||
542 | if !loginSvr.HasAvailableCompany { | 544 | if !loginSvr.HasAvailableCompany { |
543 | err = protocol.NewErrWithMessage(4140, err) //账号禁用 | 545 | err = protocol.NewErrWithMessage(4140, err) //账号禁用 |
-
请 注册 或 登录 后发表评论