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

联调修改

parent 02173402
package com.quantgroup.asset.distribution.service.feature.impl; package com.quantgroup.asset.distribution.service.feature.impl;
import cn.quantgroup.tech.util.TechEnvironment;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
...@@ -65,9 +66,16 @@ public class FeatureServiceImpl implements IFeatureService { ...@@ -65,9 +66,16 @@ public class FeatureServiceImpl implements IFeatureService {
if (StringUtils.isBlank(uuid)){ if (StringUtils.isBlank(uuid)){
throw new RuntimeException("获取身份证信息参数为空"); 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<String,String> map = new HashMap<>();
map.put("uuid", uuid); 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); List<IdCardInfo> idCardInfoList = JacksonUtil.deserializeList(responce, IdCardInfo.class);
Optional<IdCardInfo> cardInfo = idCardInfoList.stream().filter(d -> d.getSide().equals("back")).findFirst(); Optional<IdCardInfo> cardInfo = idCardInfoList.stream().filter(d -> d.getSide().equals("back")).findFirst();
if (!cardInfo.isPresent()){ if (!cardInfo.isPresent()){
......
...@@ -131,7 +131,7 @@ public class CoreFilter { ...@@ -131,7 +131,7 @@ public class CoreFilter {
FundInfo fundInfo = new FundInfo(); FundInfo fundInfo = new FundInfo();
fundInfo.setFundId(fundProduct.getFundId()); fundInfo.setFundId(fundProduct.getFundId());
fundInfo.setFundProductId(fundProduct.getFundProId() + ""); fundInfo.setFundProductId(fundProduct.getFundProId() + "");
fundInfo.setCooperation(CooperationEnum.parse(fundProduct.getOrgType())); fundInfo.setCooperation(CooperationEnum.parse(fundProduct.getOrgType()).ordinal());
Terms term = new Terms(); Terms term = new Terms();
term.setTerm(Integer.parseInt(auditResponce.getTerm())); term.setTerm(Integer.parseInt(auditResponce.getTerm()));
term.setFundInfos(Lists.newArrayList(fundInfo)); term.setFundInfos(Lists.newArrayList(fundInfo));
......
...@@ -13,11 +13,11 @@ public enum CooperationEnum { ...@@ -13,11 +13,11 @@ public enum CooperationEnum {
/** /**
* 助贷 * 助贷
*/ */
DIVERSION, ASSISTANCE,
/** /**
* 导流 * 导流
*/ */
ASSISTANCE; DIVERSION;
public static CooperationEnum parse(String name){ public static CooperationEnum parse(String name){
if (StringUtils.isBlank(name)){ if (StringUtils.isBlank(name)){
......
...@@ -17,7 +17,8 @@ public class FundInfo { ...@@ -17,7 +17,8 @@ public class FundInfo {
private Integer rateType = 1; private Integer rateType = 1;
private Integer feeType = 1; private Integer feeType = 1;
private Integer priority; private Integer priority;
private CooperationEnum cooperation; private Integer cooperation;
private Boolean waitFlg = Boolean.FALSE;
/** /**
* 产品 * 产品
......
...@@ -42,7 +42,7 @@ public class ContactsTelErrorVerifyImpl extends AbstractProductRuleVerifyImpl { ...@@ -42,7 +42,7 @@ public class ContactsTelErrorVerifyImpl extends AbstractProductRuleVerifyImpl {
log.warn("联系人手机号校验时发现联系人手机号为空,联系人信息 {}", JSON.toJSONString(info)); log.warn("联系人手机号校验时发现联系人手机号为空,联系人信息 {}", JSON.toJSONString(info));
continue; continue;
} }
if (this.telVerify(info.getPhoneNo())){ if (!this.telVerify(info.getPhoneNo())){
log.warn("联系人手机号校验时发现当前用户手机号有问题,联系人信息 {}", JSON.toJSONString(info)); log.warn("联系人手机号校验时发现当前用户手机号有问题,联系人信息 {}", JSON.toJSONString(info));
return false; 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