common.LogInfo(c.Request.Context(),fmt.Sprintf("user %d has enough quota %d, trusted and no need to pre-consume",userId,userQuota))
iftokenQuota>100*preConsumedQuota{
// 令牌额度充足,信任令牌
preConsumedQuota=0
common.LogInfo(c.Request.Context(),fmt.Sprintf("user %d quota %d and token %d quota %d are enough, trusted and no need to pre-consume",userId,userQuota,tokenId,tokenQuota))
}
}else{
// in this case, we do not pre-consume quota
// because the user has enough quota
preConsumedQuota=0
common.LogInfo(c.Request.Context(),fmt.Sprintf("user %d with unlimited token has enough quota %d, trusted and no need to pre-consume",userId,userQuota))