Commit 693c85da authored by 黎博's avatar 黎博

增加开户失败

parent da9cd7e2
......@@ -21,8 +21,8 @@ public class GenVccController {
@PostMapping("/gen")
@ApiOperation(value = "vcc造数据")
public JsonResult genVccUser(String namespace, String phoneNo, String channel, Integer status) throws Exception {
if (status != 0 && status != 1) {
return JsonResult.clientFailed("状态必须为0或者1");
if (status != 0 && status != 1 && status !=2 ) {
return JsonResult.clientFailed("状态必须为0、1、2");
}
if (!channel.equals("214") && !channel.equals("217")) {
return JsonResult.clientFailed("渠道必须为214或217");
......
......@@ -268,7 +268,7 @@ public class Vcc {
/**
* 额度激活
*/
public static void quotaActivation(String namespace, String token, String vccChannel, String cardNo, String requestId) throws URISyntaxException {
public static JSONObject quotaActivation(String namespace, String token, String vccChannel, String cardNo, String requestId) throws URISyntaxException {
String url = "https://talos-" + namespace + ".liangkebang.net/vcc/xyqb_mall/bind_and_open";
Map<String, Object> headers = new HashMap<>();
headers.put("x-auth-token", token);
......@@ -276,6 +276,7 @@ public class Vcc {
String params = "?cardNo=" + cardNo + "&validateCode=000000&requestId=" + requestId;
JSONObject result = HttpClientUtils.doGetReturnJson(url + params, null, headers);
log.info("额度激活结果:" + result);
return 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