Commit 39a2ff35 by 崔彦峰

Merge branch 'v5.5.4_20260128' into 'master'

上线合并

See merge request !2
2 parents 9597d772 f51ffb4d
......@@ -43,7 +43,7 @@
<dependency>
<groupId>com.gsc4cloud</groupId>
<artifactId>gsc-vcp-api</artifactId>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.5-SNAPSHOT</version>
</dependency>
<!--feign 调用-->
<dependency>
......
......@@ -29,6 +29,9 @@ public class ESignNotifyController extends HttpServlet {
@Value("${esign.appKey}")
private String appSecret;
@Value("${yjzh-esign.appKey}")
private String yjzhAppSecret;
@Autowired
private ESignRemote esignRemote;
......@@ -50,4 +53,19 @@ public class ESignNotifyController extends HttpServlet {
return Map.of("code", "200", "msg", "success");
}
@PostMapping("/yjzhNotify")
public Map<String, String> yjzhEsignNotify(@RequestBody String param, HttpServletRequest request) throws IOException {
log.info("yjzhEsignNotify param:{}", param);
if (StringUtils.isBlank(param)) {
return Map.of("code", "500", "msg", "fail");
}
SafeVerify sv = new SafeVerify();
String res =sv.checkPass(param, request, yjzhAppSecret);
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!