feat(platform): Agent 与媒体能力 - 完善角色卡、音频协议与任务恢复链路

This commit is contained in:
ddcat666 committed 2026-10-01 09:42:51 +08:00
1 parent a8f83fedd5
commit 5650da6d31
91 files changed
+3438 -380

No files matched your search

+19
View File
@@ -50,6 +50,25 @@ func (c *taskBillingCoordinator) SettleBilling(orderID string, providerRequestID
return c.repo.SettleBillingOrder(orderID, providerRequestID)
}
func (c *taskBillingCoordinator) BillingOrder(orderID string) (*model.BillingOrder, error) {
if orderID == "" {
return nil, nil
}
return c.repo.BillingOrder(orderID)
}
func (c *taskBillingCoordinator) SettleBillingWithAudioDuration(orderID string, providerRequestID string, durationMs int64) error {
if orderID == "" {
return nil
}
if repo, ok := c.repo.(interface {
SettleBillingOrderWithAudioDuration(string, string, int64) error
}); ok {
return repo.SettleBillingOrderWithAudioDuration(orderID, providerRequestID, durationMs)
}
return c.repo.SettleBillingOrder(orderID, providerRequestID)
}
func (c *taskBillingCoordinator) RestoreRefundedBilling(orderID string, providerRequestID string) error {
if orderID == "" {
return nil