Ver código fonte

:bug: 9007199254740992

LI JIAHAO 6 anos atrás
pai
commit
5f77af20e2
2 arquivos alterados com 4 adições e 4 exclusões
  1. 2 2
      dist/twitter.js
  2. 2 2
      src/twitter.ts

+ 2 - 2
dist/twitter.js

@@ -65,7 +65,7 @@ class default_1 {
                 if (tweets.length === 0)
                     return;
                 if (lock.threads[lock.feed[lock.workon]].offset === -1) {
-                    lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str;
+                    lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str;
                     return;
                 }
                 if (lock.threads[lock.feed[lock.workon]].offset === 0)
@@ -82,7 +82,7 @@ class default_1 {
                         });
                     });
                 }, this.webshotDelay)
-                    .then(() => lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str);
+                    .then(() => lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str);
             })
                 .then(() => {
                 lock.workon++;

+ 2 - 2
src/twitter.ts

@@ -96,7 +96,7 @@ export default class {
     promise.then((tweets: any) => {
       if (tweets.length === 0) return;
       if (lock.threads[lock.feed[lock.workon]].offset === -1) {
-        lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str;
+        lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str;
         return;
       }
       if (lock.threads[lock.feed[lock.workon]].offset === 0) tweets.splice(1);
@@ -112,7 +112,7 @@ export default class {
           });
         });
       }, this.webshotDelay)
-        .then(() => lock.threads[lock.feed[lock.workon]].offset = +tweets[0].id_str);
+        .then(() => lock.threads[lock.feed[lock.workon]].offset = tweets[0].id_str);
 
     })
       .then(() => {