Commit b3463f74 authored by 黎博's avatar 黎博

update

parent 245037dd
......@@ -182,9 +182,12 @@ public class VccController {
return Result.buildSuccessResult(vccOpenResultVo);
}
// 人脸识别回调
Vcc.appFaceCallback(namespace, token, vccChannel);
// Vcc.appFaceCallback(namespace, token, vccChannel);
// 基本信息
Vcc.basicInfo(namespace, token, vccChannel);
String basicInfoResult = Vcc.basicInfo(namespace, token, vccChannel);
if (!JsonPath.read(basicInfoResult, "$.businessCode").equals("0000")) {
return Result.buildErrorStateResult("用户基本信息保存失败,请依次检查vcc-talos和spider-center", false);
}
// 发送验证码
String requestId;
try {
......
......@@ -344,7 +344,7 @@ public class Vcc {
/**
* 基本信息
*/
public static void basicInfo(String namespace, String token, String vccChannel) throws JsonProcessingException {
public static String basicInfo(String namespace, String token, String vccChannel) throws JsonProcessingException {
String url = "https://talos-" + namespace + ".liangkebang.net/vcc/xyqb_mall/base_info";
Map<String, Object> headers = new HashMap<>();
headers.put("x-auth-token", token);
......@@ -371,6 +371,7 @@ public class Vcc {
String params = JsonTransUtils.mapToJson(map);
JSONObject result = HttpClientUtils.doPostJson(url, params, headers);
log.info("保存基本信息:" + result);
return JSON.toJSONString(result);
}
/**
......
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