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
|
||||
} else if req.TaskTag == 0 {
|
||||
code = pb.ErrorCode_TaskTagEmpty
|
||||
} else {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
}
|
||||
errdata = &pb.ErrorData{
|
||||
Code: code,
|
||||
Title: code.ToString(),
|
||||
Message: fmt.Sprintf("Id:%v tag:%v", req.Id, req.TaskTag),
|
||||
|
||||
if code != 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: code,
|
||||
Title: code.ToString(),
|
||||
Message: fmt.Sprintf("Id:%v tag:%v", req.Id, req.TaskTag),
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user