|
|
@@ -255,6 +255,10 @@ func (o *OpenI) SubmitTask(ctx context.Context, imageId string, cmd string, envs |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if resp.Code != 200 { |
|
|
|
|
|
return nil, errors.New(resp.Msg) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if resp.Data.Code != 0 { |
|
|
if resp.Data.Code != 0 { |
|
|
return nil, errors.New(resp.Msg) |
|
|
return nil, errors.New(resp.Msg) |
|
|
} |
|
|
} |
|
|
|