Browse Source

fix: api test

getOnlineDurationReport
Casper Dai 2 years ago
parent
commit
ae8ed38789
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/views/test-api.vue

+ 2 - 3
src/views/test-api.vue

@@ -181,9 +181,8 @@ export default {
       const { startDate, endDate } = this.getMonth()
       const { startDate, endDate } = this.getMonth()
       this.checkDevice() && getOnlineDurationReport({
       this.checkDevice() && getOnlineDurationReport({
         deviceId: this.deviceId,
         deviceId: this.deviceId,
-        type: 1,
-        sumDateFrom: startDate,
-        sumDateTo: endDate
+        from: startDate,
+        to: endDate
       }).then(this.onData)
       }).then(this.onData)
     },
     },
     async onTriggerAdSnap () {
     async onTriggerAdSnap () {