OSSEZ-21 削减 Twitter 的发布速度,避免被封号
This commit is contained in:
parent
2f3c77e85c
commit
d4adaa5405
|
@ -163,7 +163,7 @@ public class VisaImporter extends DataCrawl {
|
|||
|
||||
confAppLastRuntime = ConfFactory.get(CONF_TWITTER_COUNT);
|
||||
if (confAppLastRuntime != null) {
|
||||
confAppLastRuntime.setValue(String.valueOf(twitterCount + 3));
|
||||
confAppLastRuntime.setValue(String.valueOf(twitterCount + 1));
|
||||
ConfFactory.save(confAppLastRuntime);
|
||||
}
|
||||
|
||||
|
@ -343,7 +343,7 @@ public class VisaImporter extends DataCrawl {
|
|||
publishTwitter(visaStatusLog);
|
||||
}
|
||||
|
||||
for (int i = twitterCount; i < twitterCount + 5; i++) {
|
||||
for (int i = twitterCount; i < twitterCount + 3; i++) {
|
||||
VisaStatusLog visaStatusLog = LogFactory.getVisaStatusLog(NumberUtils.toLong(String.valueOf(i)));
|
||||
if (visaStatusLog != null) {
|
||||
publishTwitter(visaStatusLog);
|
||||
|
|
Loading…
Reference in New Issue