diff --git a/service/gateway/gateway_http_service.go b/service/gateway/gateway_http_service.go index 24a2e9e..3831b2c 100644 --- a/service/gateway/gateway_http_service.go +++ b/service/gateway/gateway_http_service.go @@ -77,11 +77,12 @@ func UploadByTask(ctx context.Context, data []byte, fileExt string) (oss *Upload // CallbackPayload 回调请求体 type CallbackPayload struct { - TaskId string `json:"task_id"` - State int `json:"state"` - OssFile string `json:"oss_file"` - FileType string `json:"file_type"` - ErrorMsg string `json:"error_msg"` + TaskId string `json:"task_id"` + State int `json:"state"` + OssFile string `json:"oss_file"` + FileType string `json:"file_type"` + ErrorMsg string `json:"error_msg"` + BillingDate map[string]any `json:"billing_data"` } // TriggerCallback 任务的回调 @@ -104,6 +105,7 @@ func TriggerCallback(ctx context.Context, t *entity.ModelGatewayTask) { if !g.IsEmpty(t.ResultFile) { payload.OssFile = t.ResultFile.OssFile payload.FileType = t.ResultFile.FileType + payload.BillingDate = t.BillingData } jsonData, err := json.Marshal(payload) if err != nil {