|
|
@ -1,6 +1,5 @@
|
|
|
|
package com.ruoyi.tcZz.controller;
|
|
|
|
package com.ruoyi.tcZz.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.http.HttpRequest;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.tcZz.utils.SecretUtil;
|
|
|
|
import com.ruoyi.tcZz.utils.SecretUtil;
|
|
|
@ -39,25 +38,25 @@ public class SingleLoginController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 对接大屏登录接口1
|
|
|
|
* 处置与应急
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return 响应类
|
|
|
|
* @return 响应类
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation(value = "对接大屏登录接口1")
|
|
|
|
@ApiOperation(value = "处置与应急")
|
|
|
|
@GetMapping("/login1")
|
|
|
|
@GetMapping("/login1")
|
|
|
|
public AjaxResult login1() throws Exception {
|
|
|
|
public AjaxResult login1() throws Exception {
|
|
|
|
String token = getToken("admin", "59a984baa2991e4adcc4d307aa967b2516494386");
|
|
|
|
String token = getToken("admin", "59a984baa2991e4adcc4d307aa967b2516494386");
|
|
|
|
String encodeToken = URLEncoder.encode(token, "UTF-8");
|
|
|
|
String encodeToken = URLEncoder.encode(token, "UTF-8");
|
|
|
|
String s = "https://2.35.38.240/api/v2/singleLogin?" + "token=" + encodeToken + "&url=/dasv/preview/7";
|
|
|
|
String s = "https://2.35.38.240/api/v2/singleLogin?" + "token=" + encodeToken + "&url=/dasv/preview/26";
|
|
|
|
return AjaxResult.success((Object) s);
|
|
|
|
return AjaxResult.success((Object) s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 对接大屏登录接口1
|
|
|
|
* 供应链安全
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return 响应类
|
|
|
|
* @return 响应类
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ApiOperation(value = "对接大屏登录接口2")
|
|
|
|
@ApiOperation(value = "供应链安全")
|
|
|
|
@GetMapping("/login2")
|
|
|
|
@GetMapping("/login2")
|
|
|
|
public AjaxResult login2() throws Exception {
|
|
|
|
public AjaxResult login2() throws Exception {
|
|
|
|
String token = getToken("admin", "59a984baa2991e4adcc4d307aa967b2516494386");
|
|
|
|
String token = getToken("admin", "59a984baa2991e4adcc4d307aa967b2516494386");
|
|
|
|