Browse Source

Merge branch 'dev_1.1.7' into test

nieyuge 3 years ago
parent
commit
61c5038723
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/static/report/index.ts
  2. 3 3
      src/static/utils/index.ts

+ 2 - 2
src/static/report/index.ts

@@ -3,7 +3,7 @@ import { logType } from './enum';
 import { getBrowser, getEnvConfig, getMid, getUserInfo, appVersionCode, appType } from '../utils';
 
 const { logHost } = getEnvConfig();
-const logAPIUrl = logHost + '/log-center';
+const logAPIUrl = logHost + '/denet';
 
 export function Report(params: any) {
     let baseInfo = params.baseInfo || {}
@@ -35,7 +35,7 @@ export function Report(params: any) {
     params.params.eventData = JSON.stringify(eventData)
     params.params.extParams  = JSON.stringify(extParams)
     
-    axios.post(`${logAPIUrl}/statistics/uploadLogFromFrontend`, params)
+    axios.post(`${logAPIUrl}/log/uploadLogFromFrontend`, params)
 }
 
 function wrapObject(extParams: any) {

+ 3 - 3
src/static/utils/index.ts

@@ -15,15 +15,15 @@ export const getEnvConfig = () => {
     switch(process.env.NODE_ENV) {
         case `production`:
             host = `https://api.denetme.net`
-            logHost = `https://log.weiqumeta.com`
+            logHost = `https://log.denetnet.net`
             break;
         case `pre`:
             host = `https://preapi.denetme.net`
-            logHost = `https://prelog.weiqumeta.com`
+            logHost = `https://pretestlog.denetme.net`
             break;
         default:
             host = `https://testapi.denetme.net`
-            logHost = `https://testlog.weiqumeta.com`
+            logHost = `https://testlog.denetme.net`
             break;
     }