|
@@ -371,10 +371,11 @@ module.exports = app => {
|
|
|
for (const au in change.userGroups) {
|
|
|
if (change.userGroups[au][0].audit_order !== 0) {
|
|
|
cl['audit_amount_' + change.userGroups[au][0].audit_order] =
|
|
|
- (change.userGroups[au][0].audit_type === auditType.key.and &&
|
|
|
- ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId, status: audit.change.status.checked }) !== -1) ||
|
|
|
+ (change.userGroups[au][0].audit_type === auditType.key.and &&
|
|
|
+ ctx.helper._.findIndex(change.userGroups[au], { status: audit.change.status.checking }) !== -1 &&
|
|
|
+ ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId, status: audit.change.status.checked }) !== -1) ||
|
|
|
(change.shenpiPower && ctx.helper._.findIndex(change.userGroups[au], { uid: ctx.session.sessionUser.accountId }) !== -1) ?
|
|
|
- cl.spamount : (audit_amount[au - 1] !== undefined ? parseFloat(audit_amount[au - 1]) : null);
|
|
|
+ cl.spamount : (audit_amount[au - 1] !== undefined ? parseFloat(audit_amount[au - 1]) : null);
|
|
|
}
|
|
|
}
|
|
|
if (change.readOnly && !change.shenpiPower) {
|