|
@@ -1195,8 +1195,8 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
if ((ObjectUtil.isNotEmpty(appOrder.getOrderOrFree()) && appOrder.getOrderOrFree() == 1) || appOrder.getPrice().compareTo(BigDecimal.ZERO)== 0) {
|
|
|
payForm.setOrPayOrder(0);
|
|
|
} else {
|
|
|
- Map<String, String> result = payment(appOrder.getId());
|
|
|
- payForm.setParams(result);
|
|
|
+// Map<String, String> result = payment(appOrder.getId());
|
|
|
+// payForm.setParams(result);
|
|
|
|
|
|
//发布任务到redission延迟队列(16分钟)
|
|
|
String task = CommonConstant.ORDER_TIME_OUT_TASK_PREFIX + appOrder.getId();
|
|
@@ -1699,15 +1699,16 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
AppOrder appOrder = appOrderMapper.selectOne(Wrappers.<AppOrder>lambdaQuery().eq(AppOrder::getOrderCode, orderCode).last("limit 1"));
|
|
|
|
|
|
//null代表查询失败 SUCCESS-成功 USERPAYING和ACCEPT为中间态 其他为支付失败
|
|
|
- JSONObject res = weChatPayService.orderQueryByOutTradeNo(orderCode);
|
|
|
- String s = res == null ? null : res.getString("trade_state");
|
|
|
+// JSONObject res = weChatPayService.orderQueryByOutTradeNo(orderCode);
|
|
|
+// String s = res == null ? null : res.getString("trade_state");
|
|
|
+ String s = "SUCCESS";
|
|
|
if ("SUCCESS".equals(s) || appOrder.getOriginalPrice().compareTo(BigDecimal.ZERO)==0) {
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(appOrder) && Objects.equals(appOrder.getOrderStatus(), CommonConstant.ORDER_STATUS_0)) {
|
|
|
appOrder.setOrderStatus(1);
|
|
|
appOrder.setPayTime(new Date());
|
|
|
appOrder.setPayStatus(1);
|
|
|
- appOrder.setTransactionId(res.getString("transaction_id"));
|
|
|
+// appOrder.setTransactionId(res.getString("transaction_id"));
|
|
|
appOrderMapper.updateById(appOrder);
|
|
|
List<AppOrderProInfo> proInfoList = appOrderProInfoMapper.selectList(Wrappers.<AppOrderProInfo>lambdaQuery().eq(AppOrderProInfo::getOrderId, appOrder.getId()));
|
|
|
if (CollUtil.isNotEmpty(proInfoList)) {
|
|
@@ -1924,10 +1925,11 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
throw new JeecgBootException("当前订单已过期取消,请重新下单!");
|
|
|
}
|
|
|
}
|
|
|
- Map<String, String> payment = payment(appOrderId);
|
|
|
+// Map<String, String> payment = payment(appOrderId);
|
|
|
payForm.setOrderId(appOrderId)
|
|
|
.setOrderCode(appOrder.getOrderCode())
|
|
|
- .setParams(payment);
|
|
|
+// .setParams(payment)
|
|
|
+ ;
|
|
|
return payForm;
|
|
|
}
|
|
|
|