Commit ec0ffa58 authored by 技术部-韩成龙's avatar 技术部-韩成龙

联调修改

parent 02173402
package com.quantgroup.asset.distribution.service.feature.impl;
import cn.quantgroup.tech.util.TechEnvironment;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.base.Stopwatch;
......@@ -65,9 +66,16 @@ public class FeatureServiceImpl implements IFeatureService {
if (StringUtils.isBlank(uuid)){
throw new RuntimeException("获取身份证信息参数为空");
}
//todo remove
if (!TechEnvironment.isPro()) {
IdCardInfo info = new IdCardInfo();
info.setValid_date_begin("20170901");
info.setValid_date_end("20370901");
return info;
}
Map<String,String> map = new HashMap<>();
map.put("uuid", uuid);
String responce = httpService.postJson(authUrl.concat("/ex/phone/getOcrReturnResult.json"), map);
String responce = httpService.post(authUrl.concat("/auth-center/ex/phone/getOcrReturnResult.json"), map);
List<IdCardInfo> idCardInfoList = JacksonUtil.deserializeList(responce, IdCardInfo.class);
Optional<IdCardInfo> cardInfo = idCardInfoList.stream().filter(d -> d.getSide().equals("back")).findFirst();
if (!cardInfo.isPresent()){
......
......@@ -131,7 +131,7 @@ public class CoreFilter {
FundInfo fundInfo = new FundInfo();
fundInfo.setFundId(fundProduct.getFundId());
fundInfo.setFundProductId(fundProduct.getFundProId() + "");
fundInfo.setCooperation(CooperationEnum.parse(fundProduct.getOrgType()));
fundInfo.setCooperation(CooperationEnum.parse(fundProduct.getOrgType()).ordinal());
Terms term = new Terms();
term.setTerm(Integer.parseInt(auditResponce.getTerm()));
term.setFundInfos(Lists.newArrayList(fundInfo));
......
......@@ -13,11 +13,11 @@ public enum CooperationEnum {
/**
* 助贷
*/
DIVERSION,
ASSISTANCE,
/**
* 导流
*/
ASSISTANCE;
DIVERSION;
public static CooperationEnum parse(String name){
if (StringUtils.isBlank(name)){
......
......@@ -17,7 +17,8 @@ public class FundInfo {
private Integer rateType = 1;
private Integer feeType = 1;
private Integer priority;
private CooperationEnum cooperation;
private Integer cooperation;
private Boolean waitFlg = Boolean.FALSE;
/**
* 产品
......
......@@ -42,7 +42,7 @@ public class ContactsTelErrorVerifyImpl extends AbstractProductRuleVerifyImpl {
log.warn("联系人手机号校验时发现联系人手机号为空,联系人信息 {}", JSON.toJSONString(info));
continue;
}
if (this.telVerify(info.getPhoneNo())){
if (!this.telVerify(info.getPhoneNo())){
log.warn("联系人手机号校验时发现当前用户手机号有问题,联系人信息 {}", JSON.toJSONString(info));
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment