aa
This commit is contained in:
@@ -813,8 +813,12 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
event.SendSysMessageSimple(content.String(), jobOrder.UserID)
|
||||||
} else {
|
} else {
|
||||||
content.WriteString("不通过,请您修改后重新提交!")
|
content2 := new(strings.Builder)
|
||||||
|
content2.WriteString("非常抱歉,您提交的任务: ")
|
||||||
|
content2.WriteString(job.Title)
|
||||||
|
content2.WriteString("未通过审核,请您修改后重新提交!")
|
||||||
if job.Status < 0 {
|
if job.Status < 0 {
|
||||||
if job.CashbackType == model.JobCashbackPrice {
|
if job.CashbackType == model.JobCashbackPrice {
|
||||||
userBill, err := dao.GetUserBill(db, job.UserID, "")
|
userBill, err := dao.GetUserBill(db, job.UserID, "")
|
||||||
@@ -830,6 +834,7 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
event.SendSysMessageSimple(content2.String(), jobOrder.UserID)
|
||||||
}
|
}
|
||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
//任务定时器停止
|
//任务定时器停止
|
||||||
@@ -853,7 +858,6 @@ func AuditJob(ctx *jxcontext.Context, jobOrderID, status int, comment, vendorWay
|
|||||||
jobTimer.Status = model.JobTimerStatusFinish
|
jobTimer.Status = model.JobTimerStatusFinish
|
||||||
dao.UpdateEntity(db, jobTimer, "Status")
|
dao.UpdateEntity(db, jobTimer, "Status")
|
||||||
}
|
}
|
||||||
event.SendSysMessageSimple(content.String(), jobOrder.UserID)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user