|
|
@@ -413,6 +413,11 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
return R.error("订单状态不正确");
|
|
|
}
|
|
|
|
|
|
+ Object isPaying = redisCache.getCacheObject("isPaying:" + param.getOrderId());
|
|
|
+ if(ObjectUtil.isNotNull(isPaying)) {
|
|
|
+ return R.error("支付中,请稍等...");
|
|
|
+ }
|
|
|
+
|
|
|
FsUser user=userService.selectFsUserById(order.getUserId());
|
|
|
if(user!=null&& StringUtils.isNotEmpty(user.getMaOpenId())){
|
|
|
//已改价处理
|
|
|
@@ -498,6 +503,8 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
}
|
|
|
R process = payment.createOrder(processContext);
|
|
|
if("200".equals(String.valueOf(process.get("code")))){
|
|
|
+ redisCache.setCacheObject("isPaying:"+param.getOrderId(),1);
|
|
|
+
|
|
|
return process;
|
|
|
}
|
|
|
}
|