This commit is contained in:
苏尹岚
2020-10-14 09:31:29 +08:00
parent 1133684e3b
commit 49ad561d54
3 changed files with 5 additions and 14 deletions

View File

@@ -20,9 +20,9 @@ func PublishJob(ctx *jxcontext.Context, job *model.Job) (err error) {
// switch job.JobCategoryID {
// case 1:
// }
if ctx.GetUserID() != job.UserID {
return fmt.Errorf("用户信息已过期,请重新登录!")
}
// if ctx.GetUserID() != job.UserID {
// return fmt.Errorf("用户信息已过期,请重新登录!")
// }
if job.Count <= 0 {
return fmt.Errorf("任务数量不能为0")
}