|
@@ -926,7 +926,7 @@ module.exports = app => {
|
|
*/
|
|
*/
|
|
async checkAuditAgain(ctx) {
|
|
async checkAuditAgain(ctx) {
|
|
try {
|
|
try {
|
|
- if (ctx.stage.user_id === ctx.session.sessionUser.accountId && ctx.stage.status === auditConst.status.checked && ctx.stage.order === ctx.stage.highOrder) {
|
|
|
|
|
|
+ if (ctx.stage.auditors[ctx.stage.auditors.length - 1].aid === ctx.session.sessionUser.accountId && ctx.stage.status === auditConst.status.checked && ctx.stage.order === ctx.stage.highOrder) {
|
|
await ctx.service.stageAudit.checkAgain(ctx.stage.id, ctx.stage.times);
|
|
await ctx.service.stageAudit.checkAgain(ctx.stage.id, ctx.stage.times);
|
|
console.log('success');
|
|
console.log('success');
|
|
ctx.redirect(ctx.request.header.referer);
|
|
ctx.redirect(ctx.request.header.referer);
|