|
|
@@ -52,19 +52,13 @@ class PointsTransformer
|
|
|
'type_label' => self::TYPE_LABELS[$type] ?? $type,
|
|
|
'api_type' => getProp($item, 'api_type'),
|
|
|
'task_id' => (int)getProp($item, 'task_id'),
|
|
|
- 'charge_info' => [
|
|
|
- 'model' => getProp($chargeInfo, 'model'),
|
|
|
- 'modality' => getProp($chargeInfo, 'modality'),
|
|
|
- 'video_resolution' => getProp($chargeInfo, 'video_resolution'),
|
|
|
- 'video_duration' => getProp($chargeInfo, 'video_duration'),
|
|
|
- 'ratio' => getProp($chargeInfo, 'ratio'),
|
|
|
- ],
|
|
|
+ 'charge_info' => $chargeInfo,
|
|
|
'points_consumed' => (float)getProp($item, 'points_consumed', 0),
|
|
|
'points_before' => (float)getProp($item, 'points_before', 0),
|
|
|
'points_after' => (float)getProp($item, 'points_after', 0),
|
|
|
'tokens_consumed' => (int)getProp($item, 'tokens_consumed', 0),
|
|
|
'remark' => getProp($item, 'remark'),
|
|
|
- 'created_at' => getProp($item, 'created_at'),
|
|
|
+ 'created_at' => transDate(getProp($item, 'created_at')),
|
|
|
];
|
|
|
}
|
|
|
|