From 4b22e543a050b9f8bf8bdab1f0f1e5a7ebbe75a0 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 27 八月 2025 18:09:49 +0800 Subject: [PATCH] 硬件回调 --- cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/BallController.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/BallController.java b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/BallController.java index 81c0d59..0080217 100644 --- a/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/BallController.java +++ b/cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/BallController.java @@ -570,7 +570,14 @@ return null; } - + public static void main(String[] args) throws Exception { + String blueS = "{\"vipDetail\":1,role\":1,\"time\":[{\"start_time\":\"2025-08-25 09:00:00\",\"end_time\":\"2025-08-30 23:00:00\"}]}"; + MyQrCodeUtil.createCodeToFile(blueS); + BufferedImage blueImage = QRCodeUtil.createImage(blueS); + MultipartFile blueFile = convert(blueImage, new Date().getTime() + UUIDUtil.getRandomCode(3) + ".PNG"); + String s = OssUploadUtil.ossUpload("img/", blueFile); + System.err.println(s); + } @RequestMapping("/pre_add") public String add(Model model) { -- Gitblit v1.7.1