Commit da9cd7e2 authored by 黎博's avatar 黎博

新增开户失败

parent f22080e2
...@@ -65,7 +65,6 @@ public class VccDataServiceImpl implements VccDataService { ...@@ -65,7 +65,6 @@ public class VccDataServiceImpl implements VccDataService {
genVccUser.setMsg("提交授信成功!"); genVccUser.setMsg("提交授信成功!");
return genVccUser; return genVccUser;
} }
if (status == 1) {
// 人脸识别回调 // 人脸识别回调
Vcc.appFaceCallback(namespace, token, vccChannel); Vcc.appFaceCallback(namespace, token, vccChannel);
// 基本信息 // 基本信息
...@@ -73,7 +72,8 @@ public class VccDataServiceImpl implements VccDataService { ...@@ -73,7 +72,8 @@ public class VccDataServiceImpl implements VccDataService {
// 发送验证码 // 发送验证码
String requestId = Vcc.bindCardSms(namespace, token, vccChannel, "ABC", "6228272537046278993"); String requestId = Vcc.bindCardSms(namespace, token, vccChannel, "ABC", "6228272537046278993");
// 额度激活 // 额度激活
Vcc.quotaActivation(namespace, token, vccChannel, "6228272537046278993", requestId); JSONObject quotaActivationResult = Vcc.quotaActivation(namespace, token, vccChannel, "6228272537046278993", requestId);
if (status == 1) {
// 开户结果 // 开户结果
JSONObject result = Vcc.openResult(namespace, token, vccChannel); JSONObject result = Vcc.openResult(namespace, token, vccChannel);
Map data = (Map) result.get("data"); Map data = (Map) result.get("data");
...@@ -83,6 +83,14 @@ public class VccDataServiceImpl implements VccDataService { ...@@ -83,6 +83,14 @@ public class VccDataServiceImpl implements VccDataService {
genVccUser.setEacctNo(eacctNo); genVccUser.setEacctNo(eacctNo);
genVccUser.setMsg("开户成功"); genVccUser.setMsg("开户成功");
} }
if (status == 2) {
Map data = (Map) quotaActivationResult.get("data");
if (data.get("status").equals("2")) {
genVccUser.setMsg("开户失败");
} else {
genVccUser.setMsg("请找开发手动设置结果为开户失败!");
}
}
return genVccUser; return genVccUser;
} }
} }
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