Bläddra i källkod

add 请求惠众和银华

GITZYY 7 månader sedan
förälder
incheckning
818151f40a

+ 3 - 3
egress-gateway-service-infrastructure/src/main/java/com/hrsk/cloud/eg/infrastructure/business/GenerateCheckIntoHttpApiConfigService.java

@@ -268,7 +268,7 @@ public class GenerateCheckIntoHttpApiConfigService {
         status.setValue("#root[code]");
         List<FunctionObject> functionObjects = Lists.newArrayList();
         FunctionObject functionObject = new FunctionObject();
-        functionObject.setCode("resultCodeConvertStatus");
+        functionObject.setCode("resultCodeConvertStatusInteger");
         functionObjects.add(functionObject);
         status.setFunctions(functionObjects);
         resultObj.put("status","#"+JSONObject.toJSONString(status));
@@ -438,7 +438,7 @@ public class GenerateCheckIntoHttpApiConfigService {
         status.setValue("#root[code]");
         List<FunctionObject> functionObjects = Lists.newArrayList();
         FunctionObject functionObject = new FunctionObject();
-        functionObject.setCode("resultCodeConvertStatus");
+        functionObject.setCode("resultCodeConvertStatusInteger");
         functionObjects.add(functionObject);
         status.setFunctions(functionObjects);
         resultObj.put("status","#"+JSONObject.toJSONString(status));
@@ -751,7 +751,7 @@ public class GenerateCheckIntoHttpApiConfigService {
         status.setValue("#root[code]");
         List<FunctionObject> functionObjects = Lists.newArrayList();
         FunctionObject functionObject = new FunctionObject();
-        functionObject.setCode("resultCodeConvertStatusCode");
+        functionObject.setCode("resultCodeConvertStatusString");
         functionObjects.add(functionObject);
         status.setFunctions(functionObjects);
         resultObj.put("status","#"+JSONObject.toJSONString(status));

+ 24 - 2
start/src/test/java/StartTest.java

@@ -96,7 +96,7 @@ public class StartTest {
     @Test
     public void createYinHuaApiTest(){
         List<ProductBusinessApiInfoDo> productBusinessApiInfoDos = productBusinessApiInfoService.selectByJointJonintTypeForList("YinHua");
-        generateCHeckIntoHttpApiConfigService.generateRxkConfig(productBusinessApiInfoDos.get(0).getThreeSystemConfig());
+        generateCHeckIntoHttpApiConfigService.generateYinHuaConfig(productBusinessApiInfoDos.get(0).getThreeSystemConfig());
     }
 
 
@@ -273,7 +273,7 @@ public class StartTest {
      * @date: 2024/9/5 14:34
      */
     @Test
-    public void yinHuaApiTest(){
+    public void huiZhongApiTest(){
         Long apiId= 441338278858304L;
         UserInBaseInfoDto user =new UserInBaseInfoDto();
         user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
@@ -287,6 +287,28 @@ public class StartTest {
         apiGateway.checkIntoRequest(checkin);
     }
 
+    /**
+     * @description:  银华咨询 api 测试
+     * @param:
+     * @return:
+     * @author zhangyy
+     * @date: 2024/9/5 14:34
+     */
+    @Test
+    public void yinHuaApiTest(){
+        Long apiId= 441422299497792L;
+        UserInBaseInfoDto user =new UserInBaseInfoDto();
+        user.setPhoneMd5("b5500dfab55f42b340d31326561e16cb");
+        user.setCompanyCity("重庆");
+        PlanDto  plan =new PlanDto();
+        plan.setApiId(apiId);
+        plan.setBid("aff1c7b30d8b240826030235business");
+        CheckIntoParamDto checkin =new CheckIntoParamDto();
+        checkin.setPlan(plan);
+        checkin.setUser(user);
+        apiGateway.checkIntoRequest(checkin);
+    }
+
 
 
     @Test