优化积分计数。

This commit is contained in:
Hommy
2026-08-17 21:35:00 +08:00
parent 27daccd1ce
commit 01c64aaae3

View File

@@ -786,8 +786,8 @@ class VideoGenTaskManager:
# 将微秒转换为秒
video_duration = duration_us / 1_000_000 # 微秒转秒
# 计算费用0.01积分/秒
cost = video_duration * 0.01
# 计算费用0.005积分/秒
cost = video_duration * 0.005
# 导入扣费函数
from src.utils.points import deduct_user_points