|
|
@@ -156,10 +156,17 @@ public class OrderController {
|
|
|
|
|
|
orderDonService.prepayNotify(map);
|
|
|
log.info("pc端微信支付回调修改订单状态成功");
|
|
|
- return;
|
|
|
-// String host = envCommonService.getHost();
|
|
|
-// String returnUrl = String.format("https://%s/yinhe/web/ticket", host);
|
|
|
-// response.sendRedirect(returnUrl);
|
|
|
+ String toWeChatXmlResponse = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
|
|
|
+
|
|
|
+ OutputStream out = null;
|
|
|
+ try {
|
|
|
+ out = response.getOutputStream();
|
|
|
+ IoKit.write(toWeChatXmlResponse, out);
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw BusinessRuntimeException.getInstance(e,e.getMessage());
|
|
|
+ } finally {
|
|
|
+ IoKit.close(out);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|