Browse Source

接口加密报错

matianxiang 1 month ago
parent
commit
184b44f4c9

+ 2 - 1
eitc-admin/src/main/java/com/eitc/web/controller/saomiaoyi/SaoMiaoYiController.java

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
5
 import com.eitc.common.annotation.IgnoreReturnResultEncryption;
5
 import com.eitc.common.annotation.IgnoreReturnResultEncryption;
6
 import com.eitc.common.config.EitcConfig;
6
 import com.eitc.common.config.EitcConfig;
7
 import com.eitc.common.core.domain.AjaxResult;
7
 import com.eitc.common.core.domain.AjaxResult;
8
+import com.eitc.common.utils.CryptoUtil;
8
 import com.eitc.common.utils.InterfaceVerificationUtil;
9
 import com.eitc.common.utils.InterfaceVerificationUtil;
9
 import com.eitc.common.utils.file.FileUploadUtils;
10
 import com.eitc.common.utils.file.FileUploadUtils;
10
 import com.eitc.framework.config.ServerConfig;
11
 import com.eitc.framework.config.ServerConfig;
@@ -57,7 +58,7 @@ public class SaoMiaoYiController {
57
         String saSignStr = InterfaceVerificationUtil.getSaSignStr(new HashMap<>());
58
         String saSignStr = InterfaceVerificationUtil.getSaSignStr(new HashMap<>());
58
         String url = fileUrl + "api/sys/clinict/appGetClinictList?" + saSignStr;
59
         String url = fileUrl + "api/sys/clinict/appGetClinictList?" + saSignStr;
59
         String object = restTemplate.getForObject(url, String.class);
60
         String object = restTemplate.getForObject(url, String.class);
60
-        return JSONObject.parseObject(object, AjaxResult.class);
61
+        return JSONObject.parseObject(CryptoUtil.decrypt(object), AjaxResult.class);
61
     }
62
     }
62
 
63
 
63
 
64