tangdehang 3 ヶ月 前
コミット
130cac024c
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      static/rtcEngine/js/logReport.js

+ 1 - 1
static/rtcEngine/js/logReport.js

@@ -254,7 +254,7 @@ export default class LogReport {
   // 日志记录上报 字符串日志上报
   report() {
     this.logs.forEach(() => {
-      this.$Request.post(this.URL_API + this.URL_ADDRESS, { ...this.logs.shift() })
+      this.$Request.post(this.URL_API[location.protocol] + this.URL_ADDRESS, { ...this.logs.shift() })
       .then(res => {
         console.log('日志上报成功', res);
       });