Commit 8511ea0f by CaIon

fix: prevent refund on video task update error

parent b70b4597
...@@ -255,6 +255,7 @@ func updateVideoSingleTask(ctx context.Context, adaptor channel.TaskAdaptor, cha ...@@ -255,6 +255,7 @@ func updateVideoSingleTask(ctx context.Context, adaptor channel.TaskAdaptor, cha
} }
if err := task.Update(); err != nil { if err := task.Update(); err != nil {
common.SysLog("UpdateVideoTask task error: " + err.Error()) common.SysLog("UpdateVideoTask task error: " + err.Error())
shouldRefund = false
} }
if shouldRefund { if shouldRefund {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment