Browse Source

修改OKXX ODXX返回码为1147 计费

15810770710@163.com 2 years ago
parent
commit
428a8d1029

+ 3 - 1
src/main/java/info/aspirecn/iov/sjjh/supplier10000044/constant/SjjhConstant.java

@@ -50,12 +50,14 @@ public class SjjhConstant {
 
     public static final String RESPONSE_CODE_0DXX = "0DXX";
 
+    public static final String RESPONSE_CODE_0KXX = "0KXX";
+
     public static final String PHOTO_IDENTITY_CHECK = "photoIdentityCheck";
 
     public static final String TWO_ELEMENTS_CHECK = "twoElementsCheck";
 
     // 中心通用版人像计费码
-    public static final String[] PHOTO_IDENTITY_CHARGE_CODE_NEW = {"00XX","5XXX", "01XX", "02XX"};
+    public static final String[] PHOTO_IDENTITY_CHARGE_CODE_NEW = {"00XX","5XXX", "01XX", "02XX", "0DXX", "0KXX"};
 
     public static final String DECODE_TYPE_WEIZHONG = "WEIZHONG";
 

+ 4 - 2
src/main/java/info/aspirecn/iov/sjjh/supplier10000044/service/ChannelServiceImpl.java

@@ -870,7 +870,8 @@ public class ChannelServiceImpl implements ChannelService {
                 resultObject.put("message", Constant.RETURN_MESSAGE_74);
                 ret.setResultBody(resultObject.toJSONString());
                 ret.setResultDesc(resultObject.toJSONString());
-            } else if (responseCode != null && responseCode.equals(SjjhConstant.RESPONSE_CODE_0DXX)) {
+            } else if (responseCode != null
+                    && (responseCode.equals(SjjhConstant.RESPONSE_CODE_0DXX) || responseCode.equals(SjjhConstant.RESPONSE_CODE_0KXX))) {
                 // 库中无照片
                 // 修改日期:2020-11-11
                 // 修改原因:开发时上游文档没有“库中无照片”的说明,客户需要将库中无照片与照片检测失败两个message区分开,返回码为1147
@@ -927,7 +928,8 @@ public class ChannelServiceImpl implements ChannelService {
                 resultObject.put("message", Constant.RETURN_MESSAGE_74);
                 ret.setResultBody(resultObject.toJSONString());
                 ret.setResultDesc(resultObject.toJSONString());
-            } else if (responseCode != null && responseCode.equals(SjjhConstant.RESPONSE_CODE_0DXX)) {
+            } else if (responseCode != null
+                    && (responseCode.equals(SjjhConstant.RESPONSE_CODE_0DXX) || responseCode.equals(SjjhConstant.RESPONSE_CODE_0KXX))) {
                 // 库中无照片
                 // 修改日期:2020-11-11
                 // 修改原因:开发时上游文档没有“库中无照片”的说明,客户需要将库中无照片与照片检测失败两个message区分开,卓望返回码72

+ 9 - 4
src/main/resources/config/application-test.yml

@@ -41,7 +41,7 @@ management:
 
 #logging
 logging:
-  path: /apps/var/jakarta/logs
+  path: /Users/jkxy/root-logs/apps/var/jakarta/logs
   level:
     root: INFO
     red:
@@ -68,12 +68,12 @@ eureka:
     health-check-url-path: /actuator/health
   client:
     serviceUrl:
-      defaultZone: http://localhost:8888/eureka
+      defaultZone: http://101.42.99.184:39001/eureka
 
 #custom
 supplier:
-  getTokenUrl: https://api.dabby.cn/v2/api/getaccesstoken
-  url: https://api.dabby.cn/v2/api/simpauth
+  getTokenUrl: https://api.dabby.com.cn/v2/api/getaccesstoken
+  url: https://api.dabby.com.cn/v2/api/simpauth
   clientId: 9318a53b7a6d4df9
   clientSecret: 30443e8c-7b96-4f3e-a63f-890ebc74e69f
   authMode-0x40: 64
@@ -83,5 +83,10 @@ supplier:
   decodeUrl: http://jkxy.h11.site/gateway?api=credit.sec.data
   decodeAppKey: JIAO_KE
   decodeAppSecret: D78C393359BF128715C65D91C67051478A4DFC13
+  idCardValidityUrl: https://api.dabby.cn/authverify/simpauth
+  aesDecryptKey: C1AA8eh0116128nn
+  sensitive: 111,222,333
+#  clientId: 96d7225ca7383178
+#  clientSecret: c6429fec-6222-408f-8ccc-7a2c2e91cb17
 swagger:
   show: true

+ 3 - 1
src/main/resources/config/bootstrap.yml

@@ -1,6 +1,6 @@
 spring:
   application:
-    name: '@project.artifactId@'
+    name: iov-sjjh-servicenode-supplier-10000044
   banner:
     location: classpath:config/banner.txt
   profiles:
@@ -16,6 +16,8 @@ spring:
 
 server:
   port: 25107
+  tomcat:
+    max-http-header-size: 102400
 management:
   server:
     port: 35107

+ 1 - 1
src/main/resources/config/logback-spring.xml

@@ -31,7 +31,7 @@
 	</appender>
 	
 	<root level="INFO">
-		<appender-ref ref="CONSOLE" />
+		<!-- <appender-ref ref="CONSOLE" /> -->
 		<appender-ref ref="TIME_FILE" />
 	</root>
 </configuration>