Merge branch 'Calcium-Ion:main' into fix-log-page

This commit is contained in:
Nothing. authored and GitHub committed 2024-08-11 11:22:34 +08:00
commit d3e6151747
20 files changed
+180 -120

No files matched your search

+2 -2
View File
@@ -201,8 +201,8 @@ func SumUsedQuota(logType int, startTimestamp int64, endTimestamp int64, modelNa
tx = tx.Where("created_at <= ?", endTimestamp)
}
if modelName != "" {
tx = tx.Where("model_name = ?", modelName)
rpmTpmQuery = rpmTpmQuery.Where("model_name = ?", modelName)
tx = tx.Where("model_name like ?", modelName)
rpmTpmQuery = rpmTpmQuery.Where("model_name like ?", modelName)
}
if channel != 0 {
tx = tx.Where("channel_id = ?", channel)