Compare commits

...

2 Commits

Author SHA1 Message Date
939660297d 1 2025-10-10 02:21:03 +08:00
35ae723926 Revert "1"
This reverts commit d2db86f2ac.
2025-10-10 02:15:15 +08:00

View File

@@ -526,7 +526,7 @@ public class InstructionServiceImpl implements IInstructionService {
if (!(existed.contains("李波") || existed.contains("吴胜硕") || existed.contains("小硕硕"))) {
String warn = "[炸弹] [炸弹] [炸弹] 此地址已经存在,请勿重复生成订单 [炸弹] [炸弹] [炸弹] ";
StringBuilder warnOut = new StringBuilder();
for (int i = 0; i < 5; i++) warnOut.append(warn).append("\n");
warnOut.append(warn).append("\n");
return warnOut.toString().trim();
}
}
@@ -563,7 +563,7 @@ public class InstructionServiceImpl implements IInstructionService {
int count = s != null ? Integer.parseInt(s) : 0;
startCount = count + 1;
int endCount = count + total;
stringRedisTemplate.opsForValue().set(redisKey, String.valueOf(endCount), 1, TimeUnit.DAYS);
stringRedisTemplate.opsForValue().set(redisKey, String.valueOf(endCount), 30, TimeUnit.DAYS);
} catch (Exception ignore) {
}
}
@@ -646,7 +646,7 @@ public class InstructionServiceImpl implements IInstructionService {
if (isEmpty(order.getAddress())) missing.append("收货地址\n");
if (isEmpty(order.getModelNumber())) missing.append("型号\n");
if (missing.length() > 0) {
String warn = "录单警告!!! \n缺少表单字段 \n" + missing;
String warn = "[炸弹] [炸弹] [炸弹] 录单警告!!! \n缺少表单字段 \n" + missing;
return warn;
}