xianzhi
This commit is contained in:
@@ -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!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user