Преглед изворни кода

fix(ali): accept string usage values in task polling

Seefs пре 1 месец
родитељ
комит
274307b0a9
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      relay/channel/task/ali/adaptor.go

+ 3 - 3
relay/channel/task/ali/adaptor.go

@@ -80,9 +80,9 @@ type AliVideoOutput struct {
 
 // AliUsage 使用统计
 type AliUsage struct {
-	Duration   int `json:"duration,omitempty"`
-	VideoCount int `json:"video_count,omitempty"`
-	SR         int `json:"SR,omitempty"`
+	Duration   dto.IntValue `json:"duration,omitempty"`
+	VideoCount dto.IntValue `json:"video_count,omitempty"`
+	SR         dto.IntValue `json:"SR,omitempty"`
 }
 
 type AliMetadata struct {