|  |  | 
 |  |  | import com.wechat.pay.java.service.partnerpayments.jsapi.model.Transaction; | 
 |  |  | import com.wechat.pay.java.service.refund.model.RefundNotification; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.shiro.SecurityUtils; | 
 |  |  | import org.apache.shiro.mgt.DefaultSecurityManager; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.CrossOrigin; | 
 |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
 |  |  | 
 |  |  |     } | 
 |  |  |     @PostMapping("/api/wxRefundNotify") | 
 |  |  |     public ApiResponse wxRefundNotify(HttpServletRequest request) { | 
 |  |  |         log.error("微信退款回调结果开始===========" ); | 
 |  |  |         try { | 
 |  |  |             DefaultSecurityManager securityManager = new DefaultSecurityManager(); | 
 |  |  |             SecurityUtils.setSecurityManager(securityManager); | 
 |  |  |             ServletInputStream inputStream = request.getInputStream(); | 
 |  |  |             StringBuffer stringBuffer = new StringBuffer(); | 
 |  |  |             BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); | 
 |  |  | 
 |  |  |             return ApiResponse.failed(""); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |