Commit d626760f authored by yangyang's avatar yangyang

对接聚富通

parent 8b4cb3ce
......@@ -99,6 +99,8 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
private String dayLmtAmt;
@Value ("${hygf.icbc.loanTotalAmt:200000}")
private String loanTotalAmt;
@Value ("${hygf.icbc.notifyUrl:}")
private String notifyUrl;
@Resource (type = PeasantHouseholdServiceImpl.class)
......@@ -146,7 +148,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
templateParams.put("trx_lmt_amt", trxLmtAmt);
templateParams.put("day_lmt_amt", dayLmtAmt);
bizContent.setTemplateParams(templateParams.toJSONString());
// bizContent.setCallbackUrl("https://www.icbc.com.cn/notify");
bizContent.setCallbackUrl(notifyUrl);
bizContent.setCamsPublicKey(CAMS_PUBLIC_KEY);
request.setBizContent(bizContent);
......@@ -206,7 +208,7 @@ public class HygfIcbcServiceImpl extends BaseService<HygfIcbcRecordDTO, HygfIcbc
public Object registerWalletCallback(HttpServletRequest request, HttpServletResponse response) throws Exception {
log.info("验签");
boolean verifyFlag = verifySignData(request, "/[需替换]合作方通知路径A/[需替换]合作方通知路径B");
boolean verifyFlag = verifySignData(request, notifyUrl);
String returnJson;
// 获取其他参数略...
if (verifyFlag) {// 验签成功
......
......@@ -246,3 +246,6 @@ spring.elasticsearch.rest.connection-timeout=30000
spring.elasticsearch.rest.username=elastic
spring.elasticsearch.rest.password=123456
spring.elasticsearch.rest.read-timeout=30000
## 聚富通 配置
hygf.icbc.notifyUrl=http://47.92.234.253:8088/hygf/icbc/notify
\ No newline at end of file
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