Skip to content

Commit

Permalink
feat:添加强制删除,优化七牛云对接
Browse files Browse the repository at this point in the history
  • Loading branch information
Hello-hao committed Jan 2, 2024
1 parent e2e723e commit 679ada6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/main/java/cn/hellohao/controller/IndexController.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class IndexController {
@Autowired private IRedisService iRedisService;
@Autowired private AppClientService appClientService;

public static String version = "20230925";
public static String version = "20240102";
@RequestMapping(value = "/")
public String Welcome(Model model, HttpServletRequest httpServletRequest) {
model.addAttribute("name", "服务端程序(开源版)");
Expand All @@ -65,6 +65,7 @@ public Msg webInfo() {
JSONObject jsonObject = new JSONObject();
AppClient appClient = appClientService.getAppClientData("app");
jsonObject.put("webname", cd.getString("webname"));
jsonObject.put("systype","free");
jsonObject.put("version",version);
jsonObject.put("websubtitle", cd.getString("websubtitle"));
jsonObject.put("keywords", cd.getString("keywords"));
Expand All @@ -85,7 +86,7 @@ public Msg webInfo() {
msg.setData(jsonObject);
return msg;
}
@PostMapping("/uploadChunkFile")
@PostMapping(value = {"/uploadChunkFile","/client/uploadChunkFile"})
@ResponseBody
@CrossOrigin
public Msg uploadChunk(HttpServletRequest request,Chunk chunk) {
Expand All @@ -108,7 +109,7 @@ public Msg uploadChunk(HttpServletRequest request,Chunk chunk) {
}
}

@PostMapping("/processFile")
@PostMapping(value = {"/processFile","/client/processFile"})
@ResponseBody
@CrossOrigin
public Msg processFile(HttpServletRequest request,@RequestParam(value = "data", defaultValue = "") String data){
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/hellohao/service/impl/deleImages.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Msg dele(boolean forceDel,String uuid, Long... imgIds) {
boolean isDele = false;
try {
Images image = imgService.selectByPrimaryKey(imgIds[i]);
if (!forceDel) {
if (forceDel) {
try {
imgAndAlbumService.deleteImgAndAlbum(image.getImgurl());
imgTempService.delImgAndExp(image.getImguid());
Expand Down

0 comments on commit 679ada6

Please sign in to comment.