You've already forked FrameTour-BE
VirtualThread
This commit is contained in:
@@ -96,7 +96,7 @@ public class WxPayServiceImpl implements WxPayService {
|
||||
log.info("[微信支付]parse = {}", callbackResponse);
|
||||
|
||||
// 更新订单信息
|
||||
new Thread(() -> {
|
||||
Thread.ofVirtual().start(() -> {
|
||||
long orderId = Long.parseLong(callbackResponse.getOrderNo());
|
||||
if (callbackResponse.isPay()) {
|
||||
orderBiz.paidOrder(orderId);
|
||||
@@ -105,7 +105,7 @@ public class WxPayServiceImpl implements WxPayService {
|
||||
} else if (callbackResponse.isRefund()) {
|
||||
orderBiz.refundOrder(orderId);
|
||||
}
|
||||
}).start();
|
||||
});
|
||||
} catch (Exception e) {
|
||||
throw new AppException(BizCodeEnum.ADVANCE_PAYMENT_CALLBACK_FAILED, e.toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user