Commit a9f18e5b authored by brent's avatar brent

modify bug

parent 2694fbb3
......@@ -207,11 +207,13 @@ func (server *TaskController) BillDetails() {
for _, task := range data {
apiPath := ""
desc := ""
typeDesc := ""
taskId, err := strconv.Atoi(task.Type)
if err == nil {
taskType, err1 := odysseus.GetTaskType(int64(taskId))
if err1 == nil {
apiPath = taskType.ApiPath
typeDesc = models.ModelType(taskType.Type).String()
//desc = taskType.Desc
}
}
......@@ -220,7 +222,7 @@ func (server *TaskController) BillDetails() {
reTask := models.Bills{
Id: task.Id,
Type: "txt2Img",
Type: typeDesc,
Fee: task.Fee,
Time: task.Time,
Result: task.Result,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment