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