条款、服务协议、隐私政策 这些长text字段,为减缓宽带消耗,放到oss中加载
This commit is contained in:
@@ -67,7 +67,7 @@ public class CommonInfoServiceImpl extends ServiceImpl<CommonInfoDao, CommonInfo
|
|||||||
}
|
}
|
||||||
commonInfoDao.updateById(commonInfo);
|
commonInfoDao.updateById(commonInfo);
|
||||||
cleanAppKv();
|
cleanAppKv();
|
||||||
cleanAppOssKv(commonInfo.getType());
|
//cleanAppOssKv(commonInfo.getType());
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ public class CommonInfoServiceImpl extends ServiceImpl<CommonInfoDao, CommonInfo
|
|||||||
public Result delete(long id) {
|
public Result delete(long id) {
|
||||||
CommonInfo commonInfo = commonInfoDao.selectById(id);
|
CommonInfo commonInfo = commonInfoDao.selectById(id);
|
||||||
if(commonInfo != null){
|
if(commonInfo != null){
|
||||||
cleanAppOssKv(commonInfo.getType());
|
//cleanAppOssKv(commonInfo.getType());
|
||||||
}
|
}
|
||||||
commonInfoDao.deleteById(id);
|
commonInfoDao.deleteById(id);
|
||||||
cleanAppKv();
|
cleanAppKv();
|
||||||
@@ -94,7 +94,7 @@ public class CommonInfoServiceImpl extends ServiceImpl<CommonInfoDao, CommonInfo
|
|||||||
commonInfoDao.updateById(commonInfo);
|
commonInfoDao.updateById(commonInfo);
|
||||||
|
|
||||||
cleanAppKv();
|
cleanAppKv();
|
||||||
cleanAppOssKv(commonInfo.getType());
|
//cleanAppOssKv(commonInfo.getType());
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,11 +119,11 @@ public class CommonInfoServiceImpl extends ServiceImpl<CommonInfoDao, CommonInfo
|
|||||||
return new HashMap<>(0);
|
return new HashMap<>(0);
|
||||||
}
|
}
|
||||||
Map<Integer, String> data = list.stream().collect(Collectors.toMap(CommonInfo::getType, CommonInfo::getValue));
|
Map<Integer, String> data = list.stream().collect(Collectors.toMap(CommonInfo::getType, CommonInfo::getValue));
|
||||||
String url = putOss();
|
//String url = putOss();
|
||||||
// 移除 条款、服务协议、隐私政策 这些长text字段,为减缓宽带消耗,放到oss中加载
|
// 移除 条款、服务协议、隐私政策 这些长text字段,为减缓宽带消耗,放到oss中加载
|
||||||
data.put(154, url);
|
//data.put(154, url);
|
||||||
data.put(155, url);
|
//data.put(155, url);
|
||||||
data.put(246, url);
|
//data.put(246, url);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user