Browse Source

个贷提现bug 修改

xuqiang 1 năm trước cách đây
mục cha
commit
787daa5150

+ 9 - 0
src/main/java/com/ydtech/modules/ttqf/PayConstantStatus.java

@@ -4,6 +4,8 @@ import com.ydtech.utils.HttpUtils;
 import com.ydtech.utils.StringUtils;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Component;
+
+import javax.annotation.Signed;
 import javax.servlet.http.HttpServletRequest;
 
 @Component
@@ -71,6 +73,13 @@ public class PayConstantStatus {
     private static final String PAYMENT_NOTICE_URL = "/ttqf/paymentNotice";
 
 
+    private static final String SIGNED_SUCCESSFULLY_PNG = "/upload/personnel/auditResult/auditResult.html";
+
+
+    public static String getSignedSuccessfullyPng(){
+        return tokenUrl + SIGNED_SUCCESSFULLY_PNG;
+    }
+
     public static String getPaymentNoticeUrl(){
         return tokenUrl+ PAYMENT_NOTICE_URL;
     }

+ 7 - 7
src/main/java/com/ydtech/modules/ttqf/RetrieveTTQFApi.java

@@ -215,8 +215,8 @@ public class RetrieveTTQFApi {
             throw new SystemException("用户身份证有效日期不全,请检查");
         }
         presignModel.setNotifyUrl(PayConstantStatus.getUserSignNotifyUrl());
-        for (EsmUserImageQueryVo item : esmUserImageQueryVo) {
-            try {
+        try {
+            for (EsmUserImageQueryVo item : esmUserImageQueryVo) {
                 if (StringUtils.isEmpty(item.getPath())) {
                     throw new SystemException("用户身份证影像资料不存在,请检查");
                 }
@@ -229,10 +229,10 @@ public class RetrieveTTQFApi {
                 } else if (DocumentClass.SFZ_02.getCode().equals(item.getType())) {
                     presignModel.setIdCardPicBFileId(testPictureUpload(encoded));
                 }
-            } catch (Exception e) {
-                log.error("获取影像信息错误:{}", e.getMessage());
-                e.printStackTrace();
             }
+        }catch (Exception e){
+            log.error("获取影像信息错误:{}", e.getMessage());
+            throw new SystemException("获取影像信息错误:"+e.getMessage());
         }
 //        PresignModel model = PresignModel.builder().name("杨晓").idCardNo("11010219900131252X").mobile("13092411724")
 //                .bankCardNo("6225880165591124").expiryEnd("2030-03-18" ).expiryStart("2020-03-18").idCardPicAFileId("1362670410277076994").idCardPicBFileId("1362670410277076994").build();
@@ -256,7 +256,7 @@ public class RetrieveTTQFApi {
             }
         } else {
             log.error("失败{}", response);
-            return response.getBizMsg();
+            throw new SystemException("失败:" + response.getBizMsg());
         }
     }
 
@@ -281,7 +281,7 @@ public class RetrieveTTQFApi {
     public static ContractH5Response contractH5(String idCardNo) {
         return tangClient.execute(ContractH5Request.builder()
                 .requestId(System.currentTimeMillis() + "").bizModel(ContractH5Model.builder()
-                        .idCardNo(idCardNo).mchReturnUrl(PayConstantStatus.getUserSignNotifyUrl()).build())
+                        .idCardNo(idCardNo).mchReturnUrl(PayConstantStatus.getSignedSuccessfullyPng()).build())
                 .build());
 
     }

+ 1 - 1
src/main/java/com/ydtech/modules/ttqf/service/impl/TtqfServiceImpl.java

@@ -285,7 +285,7 @@ public class TtqfServiceImpl implements TtqfService {
             return HttpResult.ok(WithdrawalFRes.builder().bizCode("").url(pres).msg("").build());
         }catch (Exception e){
             log.error("获取用户签约信息异常{}",e.getMessage());
-            throw new SystemException("提现申请提交失败");
+            throw new SystemException("提现申请提交失败"+ e.getMessage());
         }
     }