记得上下班打卡 | git大法好,push需谨慎

Commit 396bb1a5 authored by 胡佳晨's avatar 胡佳晨

下架活动不能下单

parent 516ff8e0
......@@ -86,7 +86,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
LocalDateTime st = LocalDateTime.parse(mixVo.getTimeStart(), DTF_YMD_HMS);
LocalDateTime et = LocalDateTime.parse(mixVo.getTimeEnd(), DTF_YMD_HMS);
LocalDateTime nt = LocalDateTime.now();
if (!nt.isAfter(st) && nt.isBefore(et)) {
if (!(nt.isAfter(st) && nt.isBefore(et)) || mixVo.getStatus() == 7) {
return ResponseDto.failure("不在活动有效期内");
}
//判断白名单
......@@ -186,7 +186,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
if (skuInfoList.size() > 0) {
preParam = goblinOrder(skuInfoList, skuMix, param.getAddressesVo(), mobile, source, version, nickName, nt, uid, param.getPayType(), param.getDeviceFrom());
}
return ResponseDto.success(payOrder(nftOrderList, preParam, orderMasterCode, param.getShowUrl(), param.getReturnUrl(), param.getDeviceFrom(), param.getPayType(), mixId, mixVo.getName(), param.getOpenId(), nt,storeName));
return ResponseDto.success(payOrder(nftOrderList, preParam, orderMasterCode, param.getShowUrl(), param.getReturnUrl(), param.getDeviceFrom(), param.getPayType(), mixId, mixVo.getName(), param.getOpenId(), nt, storeName));
} catch (Exception e) {
e.printStackTrace();
initStock(canBuyIds, mixId, isUseLimit, uid);
......@@ -550,7 +550,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
boolean isSuccess = true;
for (String orderId : nft) {
if("".equals(orderId)){
if ("".equals(orderId)) {
break;
}
String nftR = syncNft(orderId, code, status, paymentType, paymentId, paymentAt);
......@@ -559,7 +559,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
}
}
for (String orderId : goblin) {
if("".equals(orderId)){
if ("".equals(orderId)) {
break;
}
String goblinR = syncGoblin(orderId, code, status, paymentType, paymentId, paymentAt);
......@@ -766,7 +766,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
String[] goblin = map.get("goblin");
for (String orderId : nft) {
if("".equals(orderId)){
if ("".equals(orderId)) {
break;
}
String nftR = nftCheck(uid, orderId);
......@@ -777,7 +777,7 @@ public class MixOrderServiceImpl implements IMixOrderService {
}
}
for (String orderId : goblin) {
if("".equals(orderId)){
if ("".equals(orderId)) {
break;
}
String goblinR = goblinCheck(uid, orderId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment