Commit be123cd9 by 章家宝

feat(gsc): szglsk esign notify

1 parent 2130b40b
......@@ -32,6 +32,9 @@ public class ESignNotifyController extends HttpServlet {
@Value("${yjzh-esign.appKey}")
private String yjzhAppSecret;
@Value("${szglsk-esign.appKey}")
private String szglskAppSecret;
@Autowired
private ESignRemote esignRemote;
......@@ -68,4 +71,19 @@ public class ESignNotifyController extends HttpServlet {
return Map.of("code", "200", "msg", "success");
}
@PostMapping("/szglNotify")
public Map<String, String> szglEsignNotify(@RequestBody String param, HttpServletRequest request) throws IOException {
log.info("szglEsignNotify param:{}", param);
if (StringUtils.isBlank(param)) {
return Map.of("code", "500", "msg", "fail");
}
SafeVerify sv = new SafeVerify();
String res =sv.checkPass(param, request, szglskAppSecret);
if (!res.equals("true")) {
return Map.of("code", "500", "msg", "fail");
}
esignRemote.notify(param);
return Map.of("code", "200", "msg", "success");
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!