Browse Source

替换新域名日志埋点

DevYK 3 years ago
parent
commit
d1564c9628
5 changed files with 7 additions and 4 deletions
  1. 1 1
      config/dev_config.js
  2. 1 1
      config/prd_config.js
  3. 1 1
      config/test_config.js
  4. 3 0
      model/report.js
  5. 1 1
      routes/sdk.js

+ 1 - 1
config/dev_config.js

@@ -28,7 +28,7 @@ const reids_token_config = {
 
 // http 埋点上报配置
 const http_log_report_config = {
-    HOST: 'https://testapi.piaoquantv.com',
+    HOST: 'https://testlog.weiqumeta.com',
     PATH: '/log-center/statistics/uploadLogFromFrontend',
     LOG_TYPE: 150,
 }

+ 1 - 1
config/prd_config.js

@@ -28,7 +28,7 @@ const reids_token_config = {
 
 // http 埋点上报配置
 const http_log_report_config = {
-    HOST: 'https://api.piaoquantv.com',
+    HOST: 'https://log.weiqumeta.com',
     PATH: '/log-center/statistics/uploadLogFromFrontend',
     LOG_TYPE: 106,
 }

+ 1 - 1
config/test_config.js

@@ -28,7 +28,7 @@ const reids_token_config = {
 
 // http 埋点上报配置
 const http_log_report_config = {
-    HOST: 'https://testapi.piaoquantv.com',
+    HOST: 'https://testlog.weiqumeta.com',
     PATH: '/log-center/statistics/uploadLogFromFrontend',
     LOG_TYPE: 106,
 }

+ 3 - 0
model/report.js

@@ -27,7 +27,10 @@ const http_request_post = async (params) => {
     var host = http_log_report_config.HOST
     var path = http_log_report_config.PATH
     var url = host + path
+    var url = host + path
+    logger.log('http_request_post eventData', params.eventData)
     logger.log('http_request_post', JSON.stringify(data), url)
+
     axios.post(url, data)
         .then(res => {
             logger.log('res=>', res);

+ 1 - 1
routes/sdk.js

@@ -106,7 +106,7 @@ async function withdraw(ctx) {
     const obj = ctx.request.body;
     var log_obj = { ...obj }
     var info = await moralis.queryCompanyInfoFromId(0);
-    log_obj.receiver_address_total_balance_before = await moralis.queryCollectBalance(info.user_address, obj.chain)
+    log_obj.company_address_total_balance_before = await moralis.queryCollectBalance(info.user_address, obj.chain)
     log_obj.company_public_key = info.user_address
     logger.log('withdraw log', log_obj);
     await moralis.withdraw(obj).then((result) => {