Browse Source

Changes 增加消息提醒规则

cyan 6 months ago
parent
commit
a68d53736a

+ 6 - 2
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/okki/wechatgroup/service/impl/OkkiShopWechatGroupMsgServiceImpl.java

@@ -403,8 +403,12 @@ public class OkkiShopWechatGroupMsgServiceImpl extends ServiceImpl<OkkiShopWecha
 //                    feiShuGroupId = "oc_184b7dbca30579372652f5cef04ae645";
                     if (StringUtils.isNotBlank(feiShuGroupId)) {
                         if (days != null || "需要回复".equals(isReplyCustomerText)) {
-                            Thread.sleep(1500);
-                            feiShuCommonService.sendKfRemindMsg(feiShuGroupId, msgText, userId, msgType);
+                            try {
+                                Thread.sleep(1500);
+                                feiShuCommonService.sendKfRemindMsg(feiShuGroupId, msgText, userId, msgType);
+                            } catch (InterruptedException e) {
+                                throw new RuntimeException(e);
+                            }
                         }
                     }
                 }