admin
2019-04-26 8e30aa7c1f0384f09278699318b4902b815b42a7
fanli/src/main/java/com/yeshi/fanli/util/SpringContext.java
@@ -33,6 +33,7 @@
import com.yeshi.fanli.service.inter.user.ExtractService;
import com.yeshi.fanli.service.inter.user.UserInfoService;
import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
import com.yeshi.fanli.util.cmq.ThreeSaleCMQManager;
/**
 * 系统初始化
@@ -75,6 +76,9 @@
   @Resource
   private TaoBaoOrderService taoBaoOrderService;
   @Resource
   private RedisManager redisManager;
   private static boolean isInited = false;
@@ -215,7 +219,15 @@
                     while (its.hasNext()) {
                        String handler = its.next();
                        try {
                           orderProcessService.fanli(map.get(handler));
                           HongBaoV2 hongbao = map.get(handler);
                           if (hongbao != null) {
                              String key = "hongbao-fanli-" + hongbao.getId();
                              if (StringUtil.isNullOrEmpty(redisManager.getCommonString(key))) {
                                 // 处理之后要隔2小时再次进行处理
                                 redisManager.cacheCommonString(key, "1", 60 * 60 * 2);
                                 orderProcessService.fanli(map.get(handler));
                              }
                           }
                           CMQManager.getInstance().deleteFanLiMsgNew(handler);
                        } catch (TaoBaoWeiQuanException e) {
                           try {