Kaynağa Gözat

fix: update task billing log content to include reason

feitianbubu 2 ay önce
ebeveyn
işleme
4798165272
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      service/task_billing.go

+ 2 - 2
service/task_billing.go

@@ -222,13 +222,13 @@ func RecalculateTaskQuota(ctx context.Context, task *model.Task, actualQuota int
 	}
 	}
 	other := taskBillingOther(task)
 	other := taskBillingOther(task)
 	other["task_id"] = task.TaskID
 	other["task_id"] = task.TaskID
-	other["reason"] = reason
+	//other["reason"] = reason
 	other["pre_consumed_quota"] = preConsumedQuota
 	other["pre_consumed_quota"] = preConsumedQuota
 	other["actual_quota"] = actualQuota
 	other["actual_quota"] = actualQuota
 	model.RecordTaskBillingLog(model.RecordTaskBillingLogParams{
 	model.RecordTaskBillingLog(model.RecordTaskBillingLogParams{
 		UserId:    task.UserId,
 		UserId:    task.UserId,
 		LogType:   logType,
 		LogType:   logType,
-		Content:   "",
+		Content:   reason,
 		ChannelId: task.ChannelId,
 		ChannelId: task.ChannelId,
 		ModelName: taskModelName(task),
 		ModelName: taskModelName(task),
 		Quota:     logQuota,
 		Quota:     logQuota,