Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
420f540341
@ -16,14 +16,16 @@ func (this *apiComp) ReceiveCheck(session comm.IUserSession, req *pb.TaskReceive
|
|||||||
code = pb.ErrorCode_TaskIdEmpty
|
code = pb.ErrorCode_TaskIdEmpty
|
||||||
} else if req.TaskTag == 0 {
|
} else if req.TaskTag == 0 {
|
||||||
code = pb.ErrorCode_TaskTagEmpty
|
code = pb.ErrorCode_TaskTagEmpty
|
||||||
} else {
|
|
||||||
code = pb.ErrorCode_ReqParameterError
|
|
||||||
}
|
}
|
||||||
errdata = &pb.ErrorData{
|
|
||||||
Code: code,
|
if code != 0 {
|
||||||
Title: code.ToString(),
|
errdata = &pb.ErrorData{
|
||||||
Message: fmt.Sprintf("Id:%v tag:%v", req.Id, req.TaskTag),
|
Code: code,
|
||||||
|
Title: code.ToString(),
|
||||||
|
Message: fmt.Sprintf("Id:%v tag:%v", req.Id, req.TaskTag),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user