|
@@ -61,6 +61,7 @@ public class TaContractUserServiceImpl extends ServiceImpl<TaContractUserMapper,
|
61
|
61
|
TaContractUser taContractUser = taContractUserMapper.selectOne(queryWrapper);
|
62
|
62
|
if (null != taContractUser) {
|
63
|
63
|
taContractUser.setRaiseRecordId(taRaiseRecord.getRaiseRecordId());
|
|
64
|
+ taContractUser.setCertifiedAddress(getFddServerHost(person.getMiniappId(),taContractUser.getCertifiedAddress()));
|
64
|
65
|
return taContractUser;
|
65
|
66
|
}
|
66
|
67
|
//没有法大大账号的先注册
|
|
@@ -91,14 +92,14 @@ public class TaContractUserServiceImpl extends ServiceImpl<TaContractUserMapper,
|
91
|
92
|
GetPersonVerifyUrl personverify = new GetPersonVerifyUrl(fadadaProperties.getAppId(),fadadaProperties.getAppSecret(),fadadaProperties.getVersion(),getFddServerHost(person.getMiniappId(),fadadaProperties.getServeHost()));
|
92
|
93
|
String customer_id = jsonObject.getString("data");
|
93
|
94
|
//0:三要素标准方案; 1:三要素补充方案;
|
94
|
|
- String verifyed_way = "0";
|
|
95
|
+ String verifyed_way = "1";
|
95
|
96
|
String page_modify = "1";
|
96
|
97
|
String notify_url = fadadaProperties.getCompanyNotify();
|
97
|
98
|
String return_url= "/onlineSelling/pages/raiseMoney/Certification?id=" + taRaiseRecord.getRaiseRecordId();
|
98
|
99
|
String customer_ident_type = "0";
|
99
|
100
|
String personResult = personverify.invokePersonVerifyUrl(customer_id,verifyed_way,
|
100
|
101
|
page_modify,notify_url,return_url,null,customer_ident_type,
|
101
|
|
- null,null,null,"1","1");
|
|
102
|
+ taRaiseRecord.getIdcard(),taRaiseRecord.getTel(),null,"1","1");
|
102
|
103
|
|
103
|
104
|
String data = JSON.parseObject(personResult).getString("data");
|
104
|
105
|
if (null !=data){
|
|
@@ -120,9 +121,9 @@ public class TaContractUserServiceImpl extends ServiceImpl<TaContractUserMapper,
|
120
|
121
|
*/
|
121
|
122
|
private String getFddServerHost(String miniappId,String subUrl) {
|
122
|
123
|
TaMiniapp taMiniapp = taMiniappMapper.selectById(miniappId);
|
123
|
|
- int index = subUrl.indexOf(File.separator);
|
124
|
|
- int twoIndex = subUrl.indexOf(File.separator,index);
|
125
|
|
- int threeIndex = subUrl.indexOf(File.separator,twoIndex);
|
|
124
|
+ int index = subUrl.indexOf("/");
|
|
125
|
+ int twoIndex = subUrl.indexOf("/",index+1);
|
|
126
|
+ int threeIndex = subUrl.indexOf("/",twoIndex+1);
|
126
|
127
|
String newUrl = StringUtils.isEmpty(taMiniapp.getFddServerHost()) ? subUrl : taMiniapp.getFddServerHost() + subUrl.substring(threeIndex);
|
127
|
128
|
return newUrl;
|
128
|
129
|
}
|