|
|
@ -24,9 +24,8 @@ public class TripartiteController {
|
|
|
|
* 推送资源
|
|
|
|
* 推送资源
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping("/push/clue/{appKey}")
|
|
|
|
@PostMapping("/push/clue/{appKey}")
|
|
|
|
public R<String> pushClue(@PathVariable("appKey") String appKey, @RequestBody String body) {
|
|
|
|
public R<String> pushClue(@PathVariable("appKey") String appKey, @RequestBody PushClueDTO dto) {
|
|
|
|
log.info(" =============== the body as {} ===============", body);
|
|
|
|
// PushClueDTO dto = JSONUtil.toBean(body, PushClueDTO.class);
|
|
|
|
PushClueDTO dto = JSONUtil.toBean(body, PushClueDTO.class);
|
|
|
|
|
|
|
|
return Boolean.TRUE.equals(tripartiteService.callbackByAppKeyAndNid
|
|
|
|
return Boolean.TRUE.equals(tripartiteService.callbackByAppKeyAndNid
|
|
|
|
(appKey, dto)) ? R.ok("success") : R.failed("message callback failed");
|
|
|
|
(appKey, dto)) ? R.ok("success") : R.failed("message callback failed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|