From 9486766c806fe1d9e082b2fd02ea1cc558f1b443 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 08 五月 2025 09:21:57 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/WorldCupController.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/WorldCupController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/WorldCupController.java index 44a299b..8a5a69f 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/WorldCupController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/WorldCupController.java @@ -209,7 +209,7 @@ }else{ worldCup.setStatus(1); } - worldCupClient.editWorldCup(worldCup); + worldCupClient.editWorldCup(JSON.toJSONString(worldCup)); worldCupStoreClient.delWorldCupStore(worldCup.getId()); JSONArray jsonArray = JSON.parseArray(stores); for (int i = 0; i < jsonArray.size(); i++) { @@ -237,7 +237,7 @@ WorldCup worldCup = new WorldCup(); worldCup.setId(id); worldCup.setStatus(state); - worldCupClient.editWorldCup(worldCup); + worldCupClient.editWorldCup(JSON.toJSONString(worldCup)); //开始处理已支付的退费 worldCupClient.cancelWorldCupRefund(id); return ResultUtil.success(); @@ -272,11 +272,13 @@ response.setContentType("APPLICATION/OCTET-STREAM"); response.setHeader("Content-Disposition","attachment; filename=" + URLEncoder.encode("二维码", "UTF-8") + ".zip"); ZipOutputStream out = new ZipOutputStream(response.getOutputStream()); + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); for(Map<String, Object> map : list){ String id = map.get("id").toString(); String isStudent = map.get("isStudent").toString(); - String name = map.get("name").toString(); - QRCodeUtils.encode("{\"id\":" + id + ",\"isStudent\":" + isStudent + "}", name, "/usr/playpai/qrcode", false); + String name = map.get("name").toString() + sdf.format(new Date()); + String content = "{\"id\":" + id + ",\"isStudent\":" + isStudent + "}"; + QRCodeUtils.encode(content, name, "/usr/playpai/qrcode", false); File file = new File("/usr/playpai/qrcode/" + name + ".jpg"); FileInputStream fileInputStream = new FileInputStream(file); -- Gitblit v1.7.1