Commit da9cd7e2 authored by 黎博's avatar 黎博

新增开户失败

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