杨杰 1 year ago
parent
commit
6269223535

+ 6 - 6
src/main/java/com/llisoft/pay/controller/CallbackWxPayController.java

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