Commit a9f18e5b authored by brent's avatar brent

modify bug

parent 2694fbb3
...@@ -207,11 +207,13 @@ func (server *TaskController) BillDetails() { ...@@ -207,11 +207,13 @@ func (server *TaskController) BillDetails() {
for _, task := range data { for _, task := range data {
apiPath := "" apiPath := ""
desc := "" desc := ""
typeDesc := ""
taskId, err := strconv.Atoi(task.Type) taskId, err := strconv.Atoi(task.Type)
if err == nil { if err == nil {
taskType, err1 := odysseus.GetTaskType(int64(taskId)) taskType, err1 := odysseus.GetTaskType(int64(taskId))
if err1 == nil { if err1 == nil {
apiPath = taskType.ApiPath apiPath = taskType.ApiPath
typeDesc = models.ModelType(taskType.Type).String()
//desc = taskType.Desc //desc = taskType.Desc
} }
} }
...@@ -220,7 +222,7 @@ func (server *TaskController) BillDetails() { ...@@ -220,7 +222,7 @@ func (server *TaskController) BillDetails() {
reTask := models.Bills{ reTask := models.Bills{
Id: task.Id, Id: task.Id,
Type: "txt2Img", Type: typeDesc,
Fee: task.Fee, Fee: task.Fee,
Time: task.Time, Time: task.Time,
Result: task.Result, 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