Browse Source

登录新增角色来源

wangliang 3 years ago
parent
commit
8de35965bf

+ 1 - 1
teachcloud-report/src/main/java/com/qmth/teachcloud/report/api/SsoApiController.java

@@ -141,7 +141,7 @@ public class SsoApiController {
 
         ThirdUserAuthCacheUtil.setAuthReturnUrl(String.valueOf(sysUser.getId()), loginThirdParam.getReturnUrl());
         response.setHeader("Access-Control-Allow-Origin", "*");
-        response.sendRedirect(dictionaryConfig.sysDomain().getLoginAuthenUrl() + code);
+        response.sendRedirect(dictionaryConfig.sysDomain().getLoginAuthenUrl() + code + "/" + AppSourceEnum.PRINT_THIRD);
     }
 
     @ApiOperation(value = "用户临时授权登录接口")

+ 3 - 3
teachcloud-report/src/main/java/com/qmth/teachcloud/report/api/WudaOpenApiController.java

@@ -135,12 +135,12 @@ public class WudaOpenApiController {
         // 测试开始
         String testPattern = "{0}{1}{2}{3}";
         String testCode = URLEncoder.encode(MessageFormat.format(testPattern, userAuthenticationDto.getUid() + "/" + cn, SignatureEntityTest.FIELD_JOINER, SignatureEntityTest.encrypt(userAuthenticationDto.getCode())), SystemConstant.CHARSET_NAME);
-        log.info("test-tea-code:{}",testCode);
-        log.info("test-tea-url:{}",dictionaryConfig.sysDomain().getLoginAuthenUrl() + testCode);
+        log.info("test-tea-code:{}", testCode);
+        log.info("test-tea-url:{}", dictionaryConfig.sysDomain().getLoginAuthenUrl() + testCode);
         // 测试结束
         log.info("code:{}", code);
         response.setHeader("Access-Control-Allow-Origin", "*");
-        response.sendRedirect(dictionaryConfig.sysDomain().getLoginAuthenUrl() + code);
+        response.sendRedirect(dictionaryConfig.sysDomain().getLoginAuthenUrl() + code + "/" + AppSourceEnum.WHU_THIRD);
     }
 
 //    @ApiOperation(value = "cas用户鉴权测试接口")

+ 1 - 1
teachcloud-report/src/main/resources/application-dev.properties

@@ -61,7 +61,7 @@ sys.config.customThreadPoolCoreSize=true
 sys.config.analyzeThreadPoolCoreSize=false
 sys.config.sessionActive=1h
 sys.config.reportUrl=http://localhost:9099/#/student-report/
-sys.config.loginAuthenUrl=http://localhost:9099/#/login-authen/
+sys.config.loginAuthenUrl=http://192.168.10.175:8057/#/login-authen/
 spring.resources.static-locations=file:${sys.config.serverUpload},classpath:/META-INF/resources/,classpath:/resources/
 
 org.center.url=https://solar.qmth.com.cn