bug处理

This commit is contained in:
TinyAnts
2022-12-07 10:10:54 +08:00
parent 75c8b03969
commit 933ea5a3dd
5 changed files with 49 additions and 15 deletions

View File

@@ -27,6 +27,7 @@ public class AdminConfig {
"system:role:all", // 所有角色
"system:post:all", // 所有岗位
"system:dept:list", // 所有部门
"system:menu:list", // 菜单列表
"setting:dict:type:all", // 所有字典类型
"setting:dict:data:all", // 所有字典数据
"article:cate:all", // 所有文章分类

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
public class MyJob {
public void handle(String s) {
System.out.println("有参数定时任务执行逻辑 : " + s);
// System.out.println("有参数定时任务执行逻辑 : " + s);
}
}

View File

@@ -156,12 +156,17 @@ public class AlbumsServiceImpl implements IAlbumsService {
*/
@Override
public Integer albumAdd(Map<String, String> params) {
String name = params.get("name");
if (name.length() >= 100) {
name = name.substring(0, 99);
}
Album album = new Album();
album.setCid(Integer.parseInt(params.get("cid") == null ? "0" : params.get("cid")));
album.setAid(Integer.parseInt(params.get("aid") == null ? "0" : params.get("aid")));
album.setUid(Integer.parseInt(params.get("uid") == null ? "0" : params.get("uid")));
album.setType(Integer.parseInt(params.get("type")));
album.setName(params.get("name").substring(0, 99));
album.setName(name);
album.setExt(params.get("ext"));
album.setUri(params.get("url"));
album.setSize(Long.parseLong(params.get("size")));

View File

@@ -41,14 +41,14 @@ public class SettingStorageServiceImpl implements ISettingStorageService {
list.add(qiniu);
Map<String, Object> aliyun = new LinkedHashMap<>();
aliyun.put("name", "阿里云存储");
aliyun.put("name", "阿里云OSS");
aliyun.put("alias", "aliyun");
aliyun.put("describe", "存储在阿里云,请前往阿里云开通存储服务");
aliyun.put("status", engine.equals("aliyun") ? 1 : 0);
list.add(aliyun);
Map<String, Object> qcloud = new LinkedHashMap<>();
qcloud.put("name", "腾讯云存储");
qcloud.put("name", "腾讯云COS");
qcloud.put("alias", "qcloud");
qcloud.put("describe", "存储在腾讯云,请前往腾讯云开通存储服务");
qcloud.put("status", engine.equals("qcloud") ? 1 : 0);