Bläddra i källkod

接口加密报错

matianxiang 1 månad sedan
förälder
incheckning
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 5
 import com.eitc.common.annotation.IgnoreReturnResultEncryption;
6 6
 import com.eitc.common.config.EitcConfig;
7 7
 import com.eitc.common.core.domain.AjaxResult;
8
+import com.eitc.common.utils.CryptoUtil;
8 9
 import com.eitc.common.utils.InterfaceVerificationUtil;
9 10
 import com.eitc.common.utils.file.FileUploadUtils;
10 11
 import com.eitc.framework.config.ServerConfig;
@@ -57,7 +58,7 @@ public class SaoMiaoYiController {
57 58
         String saSignStr = InterfaceVerificationUtil.getSaSignStr(new HashMap<>());
58 59
         String url = fileUrl + "api/sys/clinict/appGetClinictList?" + saSignStr;
59 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