mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	chore: update log content
This commit is contained in:
		@@ -32,7 +32,7 @@ func PostConsumeQuota(ctx context.Context, tokenId int, quotaDelta int64, totalQ
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	// totalQuota is total quota consumed
 | 
						// totalQuota is total quota consumed
 | 
				
			||||||
	if totalQuota != 0 {
 | 
						if totalQuota != 0 {
 | 
				
			||||||
		logContent := fmt.Sprintf("%.2f × %.2f", modelRatio, groupRatio)
 | 
							logContent := fmt.Sprintf("倍率:%.2f × %.2f", modelRatio, groupRatio)
 | 
				
			||||||
		model.RecordConsumeLog(ctx, &model.Log{
 | 
							model.RecordConsumeLog(ctx, &model.Log{
 | 
				
			||||||
			UserId:           userId,
 | 
								UserId:           userId,
 | 
				
			||||||
			ChannelId:        channelId,
 | 
								ChannelId:        channelId,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user