mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-25 14:37:40 +08:00
bug处理
This commit is contained in:
@@ -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", // 所有文章分类
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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")));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user