소스 검색

更换医保中心线路

lighter 3 년 전
부모
커밋
c6c1c4ac62

+ 2 - 1
src/main/java/thyyxxk/webserver/service/externalhttp/SiExecSrvc.java

@@ -9,7 +9,8 @@ import com.dtflys.forest.http.ForestResponse;
 
 import java.util.Map;
 
-@BaseRequest(baseURL = "http://10.136.68.158:22005/isp-api/powercsb/1101")
+//@BaseRequest(baseURL = "http://10.136.68.158:22005/isp-api/powercsb/1101")
+@BaseRequest(baseURL = "http://10.93.28.228:80/isp-api/powercsb/1101")
 public interface SiExecSrvc {
     @Post
     ForestResponse<byte[]> download(@Header Map<String, String> headerMap, @JSONBody JSONObject input);

+ 3 - 2
src/main/java/thyyxxk/webserver/service/medicalinsurance/ExecService.java

@@ -26,7 +26,8 @@ public class ExecService {
     private static final String OUTPUT = "output";
     private static final String MAC_ADDR = "FE-FC-FE-35-35-DE";
     private static final String IP_ADDR = "218.104.151.243";
-    private static final String siApiUrl = "http://10.136.68.158:22005/isp-api/powercsb/1101";
+//    private static final String siApiUrl = "http://10.136.68.158:22005/isp-api/powercsb/1101";
+    private static final String siApiUrl = "http://10.93.28.228:80/isp-api/powercsb/1101";
     private final SiZyDao dao;
     private volatile String signNo;
 
@@ -51,7 +52,7 @@ public class ExecService {
         input.getJSONObject("input").put("signIn", signIn);
         JSONObject result = executeTrade(input, SiFunction.SIGN_IN);
         log.info("医保签到:\n参数:{},\n结果:{}", input, result);
-        if (null != result && result.getIntValue(RESULT_CODE) == 0) {
+        if (null != result && result.getInteger(RESULT_CODE) == 0) {
             try {
                 JSONObject output = result.getJSONObject(OUTPUT);
                 signNo = output.getJSONObject("signinoutb").getString("sign_no");