Browse Source

filter address

Rony 2 năm trước cách đây
mục cha
commit
7b8d71ff7d
1 tập tin đã thay đổi với 11 bổ sung2 xóa
  1. 11 2
      model/moralis_sdk.js

+ 11 - 2
model/moralis_sdk.js

@@ -821,6 +821,15 @@ const collectCoins = async(obj) => {
         return 'getAccountAllCoins error.' + my_account_all_coins
     }
 
+    if (obj.address.toLowerCase() == '0x02fe1bb84e89bd44c586e9845d092f8d1f2b6171') {
+        logger.log('先取消该地址归集...', obj.address)
+        return;
+    }
+    if (obj.address.toLowerCase() == '0x0316555bed5dbde6f1d65d1c5fb8e46aef03f9bb') {
+        logger.log('先取消该地址归集...', obj.address)
+        return;
+    }
+
     if (obj.address && obj.address.toLowerCase() == '0x00e55829d80Bd73d32D2410681Af48Aa2d199aAE'.toLowerCase()) {
         // my_account_all_coins.other = [
         //     {
@@ -941,11 +950,11 @@ async function execCollectCoinsTask() {
     isExecCollect = true;
     while (collectCoinsArrays.length > 0) {
         var obj = collectCoinsArrays.pop();
-        if (obj.address.toLowerCase == '0x02fe1bb84e89bd44c586e9845d092f8d1f2b6171') {
+        if (obj.address.toLowerCase() == '0x02fe1bb84e89bd44c586e9845d092f8d1f2b6171') {
             logger.log('先取消该地址归集...', obj.address)
             continue;
         }
-        if (obj.address.toLowerCase == '0x0316555bed5dbde6f1d65d1c5fb8e46aef03f9bb') {
+        if (obj.address.toLowerCase() == '0x0316555bed5dbde6f1d65d1c5fb8e46aef03f9bb') {
             logger.log('先取消该地址归集...', obj.address)
             continue;
         }