银盛相关所有
This commit is contained in:
@@ -2,6 +2,7 @@ package cn.pluss.platform.controller.merchant.callback;
|
||||
|
||||
import cn.hutool.crypto.symmetric.DES;
|
||||
import cn.pluss.platform.channel.MerchantAuditService;
|
||||
import cn.pluss.platform.channel.ys.YSAuditServiceV3;
|
||||
import cn.pluss.platform.entity.RyxAccessModel;
|
||||
import cn.pluss.platform.ryx.RyxService;
|
||||
import cn.pluss.platform.ys.impl.v20210929.YsConfigV2;
|
||||
@@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
/**
|
||||
* @author DJH
|
||||
@@ -45,6 +47,10 @@ public class AuditCallbackController {
|
||||
|
||||
@Autowired
|
||||
private YsConfigV2 ysConfig;
|
||||
@Autowired
|
||||
private YSAuditServiceV3 ysAuditServiceV3;
|
||||
@Autowired
|
||||
private ExecutorService executorService;
|
||||
|
||||
@PostMapping("sxf")
|
||||
// TODO 后续需要接sxf的回调
|
||||
@@ -75,6 +81,30 @@ public class AuditCallbackController {
|
||||
ysAuditServiceV2.merchantAuditCallback(respJson);
|
||||
return "success";
|
||||
}
|
||||
@PostMapping("/ysV3")
|
||||
public String ysAuditCallbackV3(@RequestBody JSONObject result) throws Exception {
|
||||
log.info("云商服V3进件接口回调参数:{},",result.toJSONString());
|
||||
executorService.execute(() -> {
|
||||
try {
|
||||
ysAuditServiceV3.callback(result);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
return "success";
|
||||
}
|
||||
@PostMapping("/ysSignV3")
|
||||
public String ysSignV3(@RequestBody JSONObject result) throws Exception {
|
||||
log.info("云商服V3签约接口回调参数:{},",result.toJSONString());
|
||||
executorService.execute(() -> {
|
||||
try {
|
||||
ysAuditServiceV3.callback(result);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
return "success";
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核不通过的解密data数据
|
||||
|
||||
Reference in New Issue
Block a user