多余代码删除

This commit is contained in:
zhaolongfei
2024-09-04 16:48:12 +08:00
parent 0fcd4568ec
commit 903a1369f5
3 changed files with 0 additions and 14 deletions

View File

@@ -84,11 +84,6 @@
<artifactId>xboe-module-es</artifactId> <artifactId>xboe-module-es</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
</dependency> </dependency>
<dependency>
<groupId>net.jodah</groupId>
<artifactId>expiringmap</artifactId>
<version>0.5.10</version>
</dependency>
<dependency> <dependency>
<groupId>it.sauronsoftware</groupId> <groupId>it.sauronsoftware</groupId>
<artifactId>jave</artifactId> <artifactId>jave</artifactId>

View File

@@ -24,7 +24,4 @@ public class Result {
private int totalPage; private int totalPage;
private List<AuditList> list; private List<AuditList> list;
public static Object error(String s) {
return "500 服务异常";
}
} }

View File

@@ -324,12 +324,6 @@ public class StudyCourseApi extends ApiBaseController{
if (StringUtils.isEmpty(token)) { if (StringUtils.isEmpty(token)) {
token = request.getHeader("token"); token = request.getHeader("token");
} }
StudyCourseApi example = new StudyCourseApi();
for (int i = 0; i < 10; i++) {
new Thread(() -> example.someApi()).start();
//检查是否已存在
}
StudyCourseItem item = studyService.checkHas(sci.getStudyId(),sci.getContentId()); StudyCourseItem item = studyService.checkHas(sci.getStudyId(),sci.getContentId());
if(item!=null) { if(item!=null) {
String studyKey = CacheName.NAME_AUTH + ":" + CacheName.STUDY_KEY + item.getCourseId()+":"+cuser.getAccountId()+":"+item.getContentId(); String studyKey = CacheName.NAME_AUTH + ":" + CacheName.STUDY_KEY + item.getCourseId()+":"+cuser.getAccountId()+":"+item.getContentId();