Commit f3c36baf authored by Cloud User's avatar Cloud User

add exec_error

parent 83e2a55f
...@@ -608,8 +608,11 @@ type ResponseTask struct { ...@@ -608,8 +608,11 @@ type ResponseTask struct {
TaskFee string `json:"task_fee"` TaskFee string `json:"task_fee"`
IsSuccess bool `json:"is_success"` IsSuccess bool `json:"is_success"`
TaskError string `json:"task_error"` TaskError string `json:"task_error"`
ExecCode int32 `json:"exec_code"` ExecCode string `json:"exec_code"`
//ExecCode int32 `json:"exec_code"`
// "exec_code":"", // "exec_code":"",
ExecError string `exec_error`
} }
func newCache(redisAddr, redisPass, mysqlIP, dbName, user, passwd string, port int) *cachedata.CacheData { func newCache(redisAddr, redisPass, mysqlIP, dbName, user, passwd string, port int) *cachedata.CacheData {
...@@ -1347,7 +1350,9 @@ func Return(c *fiber.Ctx, resAsPb pbUpstream.TaskResponse) error { ...@@ -1347,7 +1350,9 @@ func Return(c *fiber.Ctx, resAsPb pbUpstream.TaskResponse) error {
TaskFee: resAsPb.TaskFee, TaskFee: resAsPb.TaskFee,
IsSuccess: resAsPb.TaskIsSucceed, IsSuccess: resAsPb.TaskIsSucceed,
TaskError: resAsPb.TaskError, TaskError: resAsPb.TaskError,
ExecCode: resAsPb.TaskResultCode, ExecCode: fmt.Sprintf("%d",resAsPb.TaskResultCode), //resAsPb.TaskResultCode,
//TaskExecuteError
ExeError: resAsPb.TaskExecuteError,
}, },
Output: resAsPb.GetTaskResultBody(), Output: resAsPb.GetTaskResultBody(),
} }
......
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