杨杰 1 년 전
부모
커밋
6269223535
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/main/java/com/llisoft/pay/controller/CallbackWxPayController.java

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

@@ -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