Solving a little bug.

This commit is contained in:
little-cat-sweet 2021-11-09 11:47:51 +08:00
parent a0da7c4924
commit 93e2f109bb

View File

@ -39,6 +39,7 @@ public class NotificationCancelOrderTask extends CoreDispatcher {
Collection<String> ordersNotFilter = REDIS.keys("order:*"); Collection<String> ordersNotFilter = REDIS.keys("order:*");
List<String> ordersNeedToNotify = new ArrayList<>(); List<String> ordersNeedToNotify = new ArrayList<>();
for (String order : ordersNotFilter) { for (String order : ordersNotFilter) {
if (order.length() != 38) continue;
String startStatus = REDIS.getCacheMapValue(order, "startStatus"); String startStatus = REDIS.getCacheMapValue(order, "startStatus");
if ("失败".equals(startStatus)) { if ("失败".equals(startStatus)) {
ordersNeedToNotify.add(order); ordersNeedToNotify.add(order);