瀏覽代碼

修复bug

ellisran 1 月之前
父節點
當前提交
4562cb3c64
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/service/tender_info.js

+ 1 - 0
app/service/tender_info.js

@@ -519,6 +519,7 @@ module.exports = app => {
          */
         async getAllTenderShenpiInfo(tenderIds) {
             // const defaultInfo = await this.getDefaultInfo(tenderId);
+            if (!tenderIds || tenderIds.length === 0) return [];
             const infos = await this.getAllDataByCondition({ columns: ['tid', 'shenpi'], where: { tid: tenderIds } });
             const shenpiInfos = [];
             if (!infos || infos.length === 0) return shenpiInfos;