whyclxw
2024-11-04 a2ff19bd96f7ff4843e2dbcf70ac93e7b110b967
src/main/java/com/whyc/util/TestparamHttpUtil.java
@@ -24,8 +24,16 @@
            results = response.getBody();
        } catch (RestClientException  e) {
            results=" {\n" +
                    "      \"code\": \"210\",\n" +
                    "      \"msg\": \"failed in setting test parameters\",\n" +
                    "      \"code\": \"205\",\n" +
                    "      \"msg\": \"接口调用出错\",\n" +
                    "      \"data\": null,\n" +
                    "      \"count\": 0\n" +
                    "    }";
        }
        if(results==null){
            results=" {\n" +
                    "      \"code\": \"0\",\n" +
                    "      \"msg\": \"接口调用无返回\",\n" +
                    "      \"data\": null,\n" +
                    "      \"count\": 0\n" +
                    "    }";
@@ -47,8 +55,16 @@
            results = response.getBody();
        } catch (RestClientException e) {
            results=" {\n" +
                    "      \"code\": \"210\",\n" +
                    "      \"msg\": \"failed in setting test parameters\",\n" +
                    "      \"code\": \"205\",\n" +
                    "      \"msg\": \"接口调用出错\",\n" +
                    "      \"data\": null,\n" +
                    "      \"count\": 0\n" +
                    "    }";
        }
        if(results==null){
            results=" {\n" +
                    "      \"code\": \"0\",\n" +
                    "      \"msg\": \"接口调用无返回\",\n" +
                    "      \"data\": null,\n" +
                    "      \"count\": 0\n" +
                    "    }";