Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
9b4620edaf
@ -1,6 +1,7 @@
|
|||||||
package task
|
package task
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
"go_dreamfactory/lego/sys/log"
|
"go_dreamfactory/lego/sys/log"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
@ -15,10 +16,13 @@ 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{
|
errdata = &pb.ErrorData{
|
||||||
Code: code,
|
Code: code,
|
||||||
Title: code.ToString(),
|
Title: code.ToString(),
|
||||||
|
Message: fmt.Sprintf("Id:%v tag:%v", req.Id, req.TaskTag),
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user