DevYK 2 éve
szülő
commit
cd10220b07
3 módosított fájl, 35 hozzáadás és 2 törlés
  1. 1 1
      README.md
  2. 34 0
      model/db/account_info_db.js
  3. 0 1
      model/moralis_sdk.js

+ 1 - 1
README.md

@@ -51,7 +51,7 @@ https://open.feishu.cn/open-apis/bot/v2/hook/18dfe21f-b1bd-46ca-a8c7-c85e1c84f02
 
 
 
 
 redis connect:
 redis connect:
-- redis-cli -c -h host denet-chain-prod.y2slbl.clustercfg.memorydb.us-east-1.amazonaws.com
+- redis-cli -c -h  denet-chain-prod.y2slbl.clustercfg.memorydb.us-east-1.amazonaws.com
 - lrange COLLECT_CONIS_QUEUE_KEY 0 -1 
 - lrange COLLECT_CONIS_QUEUE_KEY 0 -1 
 
 
 ## 文档
 ## 文档

+ 34 - 0
model/db/account_info_db.js

@@ -0,0 +1,34 @@
+const mysql = require("./mysql_db")
+const logger = require('../logger')
+var { db_config } = require('../../config/config.js')
+const utils = require('../utils.js')
+
+
+
+async function getAccountBalances(opts) {
+    logger.log('getAccountBalances', opts)
+    var sql_main = 'select * from '
+    var sql_table_name = 'company_key_manage'
+    var sql_where = ' WHERE '
+    var sql_where_name = ' id= ? '
+    var sql_where_value = id
+    var new_sql = sql_main.concat(sql_table_name, sql_where, sql_where_name);
+    var query_account_balances_sql = ""
+
+}
+
+async function getAccountTransactions(opts){
+    logger.log('getAccountTransactions', opts)
+    var sql_main = 'select * from '
+    var sql_table_name = 'company_key_manage'
+    var sql_where = ' WHERE '
+    var sql_where_name = ' id= ? '
+    var sql_where_value = id
+    var new_sql = sql_main.concat(sql_table_name, sql_where, sql_where_name);
+    var query_account_transactions_sql = ""
+}
+
+module.exports = {
+    getAccountBalances,
+    getAccountTransactions,
+}

+ 0 - 1
model/moralis_sdk.js

@@ -1010,7 +1010,6 @@ async function getTokenTransfers(opt) {
     }
     }
 
 
 
 
-
     logger.log('getTokenTransfers >>>>>', options);
     logger.log('getTokenTransfers >>>>>', options);
     if (options.type == 'all') {//查询主流币和 20 币所有的交易
     if (options.type == 'all') {//查询主流币和 20 币所有的交易