|
@@ -412,10 +412,6 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
if(!Objects.equals(order.getStatus(), OrderInfoEnum.STATUS_0.getValue())){
|
|
|
return R.error("订单状态不正确");
|
|
|
}
|
|
|
- String orderId=redisCache.getCacheObject("isPaying:"+order.getId());
|
|
|
- if(StringUtils.isNotEmpty(orderId)&&orderId.equals(order.getId().toString())){
|
|
|
- return R.error("正在支付中...");
|
|
|
- }
|
|
|
|
|
|
FsUser user=userService.selectFsUserById(order.getUserId());
|
|
|
if(user!=null&& StringUtils.isNotEmpty(user.getMaOpenId())){
|
|
@@ -502,7 +498,6 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
}
|
|
|
R process = payment.createOrder(processContext);
|
|
|
if("200".equals(String.valueOf(process.get("code")))){
|
|
|
- redisCache.setCacheObject("isPaying:"+order.getId(),order.getId().toString(),1, TimeUnit.MINUTES);
|
|
|
return process;
|
|
|
}
|
|
|
}
|