|
@@ -56,6 +56,7 @@ public class OpenApiController {
|
|
|
private static final String LOGOUT_URL = "http://org.xjtu.edu.cn/openplatform/oauth/logout";
|
|
|
private static final String SCHOOL_CODE = "xjtu";//测试学校code,正式改成xjtu
|
|
|
private static final String LOGIN_BEFORE_XJU_LOGIC_API = "/api/admin/print/open/login_before_xju_logic";//西交大登录之前逻辑
|
|
|
+ private static final String VERSION = "1.0.1.1";
|
|
|
|
|
|
@Resource
|
|
|
CommonService commonService;
|
|
@@ -75,9 +76,6 @@ public class OpenApiController {
|
|
|
@Resource
|
|
|
CacheService cacheService;
|
|
|
|
|
|
- @Value(value = "${app.version}")
|
|
|
- private String version;
|
|
|
-
|
|
|
@ApiOperation(value = "西安交通大学cas鉴权接口")
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回消息", response = Result.class)})
|
|
|
@RequestMapping(value = "/authentication", method = RequestMethod.GET)
|
|
@@ -87,7 +85,7 @@ public class OpenApiController {
|
|
|
@ApiParam(value = "用户类型") @RequestParam(required = false) String userType,
|
|
|
@ApiParam(value = "员工工号") @RequestParam(required = false) String employeeNo,
|
|
|
@ApiParam(value = "返回url") @RequestParam(required = false) String returnUrl) throws IOException {
|
|
|
- log.info("version:{}", version);
|
|
|
+ log.info("version:{}", VERSION);
|
|
|
if ((Objects.isNull(code) || Objects.equals(code, ""))
|
|
|
|| (Objects.isNull(employeeNo) || Objects.equals(employeeNo, ""))) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("请先通过学校地址登录");
|