Explorar o código

删除通知暂时关闭

laiguoran %!s(int64=3) %!d(string=hai) anos
pai
achega
a3471c2af8
Modificáronse 1 ficheiros con 12 adicións e 12 borrados
  1. 12 12
      app/service/stage.js

+ 12 - 12
app/service/stage.js

@@ -512,18 +512,18 @@ module.exports = app => {
             try {
                 const stageInfo = await this.getDataById(id);
                 // 通知发送 - 第三方更新
-                if (this.ctx.session.sessionProject.custom && syncApiConst.notice_type.indexOf(this.ctx.session.sessionProject.customType) !== -1) {
-                    const base_data = {
-                        tid: this.ctx.tender.id,
-                        sid: id,
-                        op: 'delete',
-                    };
-                    await this.ctx.helper.syncNoticeSend(this.ctx.session.sessionProject.customType, JSON.stringify(base_data));
-                    // 是否还存在其他期
-                    base_data.op = stageInfo.order === 1 ? 'delete' : 'update';
-                    base_data.sid = -1;
-                    await this.ctx.helper.syncNoticeSend(this.ctx.session.sessionProject.customType, JSON.stringify(base_data));
-                }
+                // if (this.ctx.session.sessionProject.custom && syncApiConst.notice_type.indexOf(this.ctx.session.sessionProject.customType) !== -1) {
+                //     const base_data = {
+                //         tid: this.ctx.tender.id,
+                //         sid: id,
+                //         op: 'delete',
+                //     };
+                //     await this.ctx.helper.syncNoticeSend(this.ctx.session.sessionProject.customType, JSON.stringify(base_data));
+                //     // 是否还存在其他期
+                //     base_data.op = stageInfo.order === 1 ? 'delete' : 'update';
+                //     base_data.sid = -1;
+                //     await this.ctx.helper.syncNoticeSend(this.ctx.session.sessionProject.customType, JSON.stringify(base_data));
+                // }
                 await transaction.delete(this.tableName, { id });
                 await transaction.delete(this.ctx.service.pos.tableName, { add_stage: id });
                 await transaction.delete(this.ctx.service.stageAudit.tableName, { sid: id });