Commit 8bf7a6db by 墨竹

Merge remote-tracking branch 'origin/developer' into developer

parents a6d66f1b d3406d0d
...@@ -150,12 +150,14 @@ public class EnterpriseController extends WebBaseController { ...@@ -150,12 +150,14 @@ public class EnterpriseController extends WebBaseController {
return; return;
} }
list.forEach(one -> { list.forEach(one -> {
if (one.getOpenMassFlag()) {
String wxEnterpriseId = one.getWxEnterpriseId(); String wxEnterpriseId = one.getWxEnterpriseId();
String key = String.format(MEMBER_RELATE_ENT_OPE_KEY, wxEnterpriseId); String key = String.format(MEMBER_RELATE_ENT_OPE_KEY, wxEnterpriseId);
Object cache = RedisUtil.getCache(key); Object cache = RedisUtil.getCache(key);
if (Objects.nonNull(cache)) { if (Objects.nonNull(cache)) {
one.setOpenMassFlag(Boolean.FALSE); one.setOpenMassFlag(Boolean.FALSE);
} }
}
}); });
} }
......
...@@ -189,10 +189,7 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -189,10 +189,7 @@ public class MessageApiServiceImpl implements MessageApiService {
return false; return false;
} }
String userid = dto.getUserid(); String userid = dto.getUserid();
// 当前规则 userId是12位并且以5开头 // 只处理5开头的-不是5开头不同步
if (userid.length() != 12) {
return false;
}
return userid.startsWith("5"); return userid.startsWith("5");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment