Browse Source

黑名单提币更新数据库

DevYK 2 years ago
parent
commit
2f225c7619
1 changed files with 6 additions and 2 deletions
  1. 6 2
      routes/sdk.js

+ 6 - 2
routes/sdk.js

@@ -300,11 +300,15 @@ async function withdraw_task() {
             //是否是黑名单
             var isBlackList = await remote_config_db.isBlackList('withdraw', exec_obj.chain, exec_obj.receiver)
             if (isBlackList) {
-                logger.error('collect_conis_task isBlackList', JSON.stringify(exec_obj));
+                var update_obj = {}
+                update_obj.withdraw_status = 3
+                update_obj.errorMsg = 'blackList'
+                await withdraw_db.update_withdraw_task(exec_obj.withdraw_id, update_obj)
+                logger.error('withdraw_task isBlackList', JSON.stringify(exec_obj));
                 continue
             }
         } catch (error) {
-            logger.error('collect_conis_task isBlackList error', JSON.stringify(exec_obj));
+            logger.error('withdraw_task isBlackList error', JSON.stringify(exec_obj));
         }