Procházet zdrojové kódy

永诚 重复投保终保获取不到时间 直接返回重复投保结果

785834757 před 2 roky
rodič
revize
19a1df5994

+ 6 - 2
src/main/java/com/ydtech/modules/order/service/impl/YongchengOrderApiServiceImpl.java

@@ -457,8 +457,12 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
                 throw new SystemException(errorMsg);
             }
             String coverageEndDate = errorMsg.substring(errorMsg.indexOf("终保日期") + 5, errorMsg.indexOf("终保日期") + 5 + 16);
-
-            LocalDateTime start = DateTimeUtil.parseLocalDateTime(coverageEndDate, DateTimeUtil.DATETIME_PATTERN_EXT1);
+            LocalDateTime start;
+            try {
+                start = DateTimeUtil.parseLocalDateTime(coverageEndDate, DateTimeUtil.DATETIME_PATTERN_EXT1);
+            }catch(Exception e){
+                throw new SystemException(errorMsg);
+            }
             LocalDateTime end = start.plusYears(1L).minusDays(1L);
 
 //            if (start.getHour() > 0) {