浏览代码

DPCC密钥更新

lighter 7 月之前
父节点
当前提交
dd48daf6c0

+ 2 - 1
src/main/java/thyyxxk/webserver/api/dpcc/DpccController.java

@@ -75,10 +75,11 @@ public class DpccController {
     @PassToken
     @GetMapping("/uploadHisData")
     public String uploadHisData(@RequestParam("token") String token) throws Exception {
+        log.info("DPCC上传请求:{}", token);
         List<PatientInfo> inpatientList = dao.getInpatientList();
         List<PatientInfo> outpatientList = dao.getOutpatientList();
         if (inpatientList.isEmpty() && outpatientList.isEmpty()) {
-            return "OK";
+            return "没有需要上传的数据。";
         }
 
         ReportIndexInquiry inquiry = getReportIndexInquiry();

+ 1 - 1
src/main/java/thyyxxk/webserver/api/dpcc/DpccEncryptUtil.java

@@ -6,7 +6,7 @@ import java.nio.charset.StandardCharsets;
 import java.util.Base64;
 
 public class DpccEncryptUtil {
-    private static final String key = "888e90bbe7d0b1e6";
+    private static final String key = "d60dc4bf4acfa895";
 
     public static String encrypt(String plainText) throws Exception {
         byte[] keyBytes = key.getBytes(StandardCharsets.UTF_8);