|
@@ -34,20 +34,20 @@ public class CallbackWxPayController {
|
|
|
|
|
|
@ApiOperation(value="异步通知 栋科")
|
|
|
@PostMapping(value="/dongke/{pid}")
|
|
|
- public ResponseEntity.BodyBuilder dongke(@PathVariable String pid, HttpServletRequest request) throws Exception {
|
|
|
+ public ResponseEntity<String> dongke(@PathVariable String pid, HttpServletRequest request) throws Exception {
|
|
|
if(apiService.wxNotifyDongke(pid, this.notify(request))) {
|
|
|
- return ResponseEntity.ok();
|
|
|
+ return ResponseEntity.ok().build();
|
|
|
}
|
|
|
- return ResponseEntity.badRequest();
|
|
|
+ return ResponseEntity.badRequest().build();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value="异步通知 青谷")
|
|
|
@PostMapping(value="/qinggu/{pid}")
|
|
|
- public ResponseEntity.BodyBuilder qinggu(@PathVariable String pid, HttpServletRequest request) throws Exception {
|
|
|
+ public ResponseEntity<String> qinggu(@PathVariable String pid, HttpServletRequest request) throws Exception {
|
|
|
if(apiService.wxNotifyQinggu(pid, this.notify(request))) {
|
|
|
- return ResponseEntity.ok();
|
|
|
+ return ResponseEntity.ok().build();
|
|
|
}
|
|
|
- return ResponseEntity.badRequest();
|
|
|
+ return ResponseEntity.badRequest().build();
|
|
|
}
|
|
|
|
|
|
// https://github.com/wechatpay-apiv3/wechatpay-java/README.md
|