瀏覽代碼

状态判断

xueyiming 7 月之前
父節點
當前提交
09154307b2

+ 11 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -710,6 +710,12 @@ public class CoreServiceImpl implements CoreService {
                             planAccountMapper.updateByPrimaryKeySelective(planAccount);
                         }
                         if (updateStatus == 3) {
+                            if (StringUtils.isNotEmpty(pushStatusVO.getErrorMsg())) {
+                                //群发配额用完  不再重试
+                                if (pushStatusVO.getErrorMsg().contains("45028")) {
+                                    planAccount.setStatus(3);
+                                }
+                            }
                             planAccount.setRetryCount(planAccount.getRetryCount() + 1);
                             planAccountMapper.updateByPrimaryKeySelective(planAccount);
                         }
@@ -718,4 +724,9 @@ public class CoreServiceImpl implements CoreService {
             }
         }
     }
+
+    public static void main(String[] args) {
+        String error = "45028,has no masssend quota rid: 673fcc03-762b3ce0-0bfa729b";
+        System.out.println(error.contains("45028"));
+    }
 }