|
@@ -4,6 +4,7 @@ import com.qmth.boot.api.annotation.Aac;
|
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.teachcloud.common.config.DictionaryConfig;
|
|
|
+import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
@@ -45,7 +46,7 @@ public class WudaOpenApiController {
|
|
|
if (Objects.isNull(uid)) {
|
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
|
}
|
|
|
- BasicSchool basicSchool = cacheService.schoolCache("wdfx");
|
|
|
+ BasicSchool basicSchool = cacheService.schoolCache(SystemConstant.SCHOOL_CODE);
|
|
|
response.setHeader("Access-Control-Allow-Origin", "*");
|
|
|
response.sendRedirect(dictionaryConfig.sysDomain().getReportUrl() + basicSchool.getId() + "/" + uid);
|
|
|
}
|
|
@@ -56,7 +57,7 @@ public class WudaOpenApiController {
|
|
|
// @Aac(auth = BOOL.FALSE)
|
|
|
// public void authenticationStudentCode(HttpServletRequest request, HttpServletResponse response, @PathVariable String studentCode
|
|
|
// ) throws IOException {
|
|
|
-// BasicSchool basicSchool = cacheService.schoolCache("wdfx");
|
|
|
+// BasicSchool basicSchool = cacheService.schoolCache(SystemConstant.SCHOOL_CODE);
|
|
|
// response.setHeader("Access-Control-Allow-Origin", "*");
|
|
|
// response.sendRedirect(dictionaryConfig.sysDomain().getReportUrl() + basicSchool.getId() + "/" + studentCode);
|
|
|
// }
|