|
@@ -56,10 +56,10 @@ public class TSAuthController {
|
|
@RequestMapping(value = "/sync/org", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/sync/org", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "机构信息", response = Object.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "机构信息", response = Object.class)})
|
|
public Object syncOrg() throws Exception {
|
|
public Object syncOrg() throws Exception {
|
|
|
|
+ SystemConstant.superOper();
|
|
if (Objects.isNull(solarProperties.getAccessKey()) && Objects.isNull(solarProperties.getAccessSecret())) {
|
|
if (Objects.isNull(solarProperties.getAccessKey()) && Objects.isNull(solarProperties.getAccessSecret())) {
|
|
throw new JkServerException("key和secret为空");
|
|
throw new JkServerException("key和secret为空");
|
|
}
|
|
}
|
|
- SystemConstant.superOper();
|
|
|
|
AppInfo appInfo = solarService.update(solarProperties.getAccessKey(), solarProperties.getAccessSecret());
|
|
AppInfo appInfo = solarService.update(solarProperties.getAccessKey(), solarProperties.getAccessSecret());
|
|
if (Objects.isNull(appInfo)) {
|
|
if (Objects.isNull(appInfo)) {
|
|
throw new JkServerException("同步机构失败");
|
|
throw new JkServerException("同步机构失败");
|
|
@@ -73,8 +73,8 @@ public class TSAuthController {
|
|
@ApiResponses({@ApiResponse(code = 200, message = "导出硬件信息", response = Object.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "导出硬件信息", response = Object.class)})
|
|
@RequestMapping(value = "/export/device/info", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/export/device/info", method = RequestMethod.POST)
|
|
public void info() {
|
|
public void info() {
|
|
- SystemConstant.superOper();
|
|
|
|
try {
|
|
try {
|
|
|
|
+ SystemConstant.superOper();
|
|
HttpServletResponse response = ServletUtil.getResponse();
|
|
HttpServletResponse response = ServletUtil.getResponse();
|
|
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
response.setHeader("Content-Disposition", "attachment; filename=" + SystemConstant.urlEncode("device.info"));
|
|
response.setHeader("Content-Disposition", "attachment; filename=" + SystemConstant.urlEncode("device.info"));
|