lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
b6867c1581
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:标记处理售后的人
       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, '未找到管理人员的信息,无法进行操作');
         this.tran.update('AfterSale', entity._id, { deal_person: admin._id });
       }