Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024
| | |
| | | /// <param name="action"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public async Task<IActionResult> SwitchOrgCode(string token, string org) |
| | | public async Task<IActionResult> SwitchOrgCode(string token, string org, string fty) |
| | | { |
| | | return Ok(await DI.Resolve<ILogin>().SwitchOrgCode(token,org)); |
| | | return Ok(await DI.Resolve<ILogin>().SwitchOrgCode(token,org, fty)); |
| | | } |
| | | /// <summary> |
| | | /// 获取登录信息 |
| | |
| | | /// <param name="action"></param> |
| | | /// <param name="Async"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction> SwitchOrgCode(string token,string org) |
| | | public async Task<ApiAction> SwitchOrgCode(string token,string org, string fty) |
| | | { |
| | | var action = new ApiAction(); |
| | | try |
| | |
| | | var query = Db.Queryable<SYS_BS_LOGIN>().Where(x => x.TOKEN == token).First(); |
| | | |
| | | query.ORG_CODE = org; |
| | | query.FTY_CODE = fty; |
| | | var db = Business.Biz.Db; |
| | | var dbTran = db.UseTran(() => |
| | | { |
| | |
| | | /// <param name="action"></param> |
| | | /// <param name="Async"></param> |
| | | /// <returns></returns> |
| | | public Task<ApiAction> SwitchOrgCode(string token, string org); |
| | | public Task<ApiAction> SwitchOrgCode(string token, string org, string fty); |
| | | |
| | | /// <summary> |
| | | /// 注销 |