lrf 2 роки тому
батько
коміт
b6867c1581
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/service/trade/afterSale.js

+ 1 - 1
app/service/trade/afterSale.js

@@ -55,7 +55,7 @@ class AfterSaleService extends CrudService {
       // 2022-10-17 需求8:标记处理售后的人
       // 2022-10-17 需求8:标记处理售后的人
       if (entity.status === '0' && update.status !== '0') {
       if (entity.status === '0' && update.status !== '0') {
         // 将状态从 审核中 变为不是 审核中的操作人
         // 将状态从 审核中 变为不是 审核中的操作人
-        const admin = this.ctx.Admin;
+        const admin = this.ctx.admin;
         if (!admin) throw new BusinessError(ErrorCode.DATA_INVALID, '未找到管理人员的信息,无法进行操作');
         if (!admin) throw new BusinessError(ErrorCode.DATA_INVALID, '未找到管理人员的信息,无法进行操作');
         this.tran.update('AfterSale', entity._id, { deal_person: admin._id });
         this.tran.update('AfterSale', entity._id, { deal_person: admin._id });
       }
       }