|
|
|
@@ -706,8 +706,8 @@ func (o OpenI) getTrainingTask(ctx context.Context, taskId string) (*model.TaskD |
|
|
|
return nil, errors.New("failed to invoke taskDetails") |
|
|
|
} |
|
|
|
|
|
|
|
if resp.Data.Code != 0 { |
|
|
|
return nil, errors.New(resp.Msg) |
|
|
|
if resp.Data.Code != 0 && resp.Data.Msg != "" { |
|
|
|
return nil, errors.New(resp.Data.Msg) |
|
|
|
} |
|
|
|
|
|
|
|
return &resp.Data, nil |
|
|
|
|