Commit 287f2c44 authored by qinhaitao's avatar qinhaitao

fix: 🐛 返回错误

parent 7106ab22
...@@ -8,7 +8,7 @@ import { passUrlList, urlCheck } from "../../../utils/helper"; ...@@ -8,7 +8,7 @@ import { passUrlList, urlCheck } from "../../../utils/helper";
const EQUITY_TYPE = 1; const EQUITY_TYPE = 1;
const CREDITS_TYPE = 2; const CREDITS_TYPE = 2;
const OBJECT_TYPE = 3; const OBJECT_TYPE = 3;
const THANKS_TYPE = 4; const THANKS_TYPE = 5;
const STOCK_LIMIT = 1; const STOCK_LIMIT = 1;
const STOCK_NO_LIMIT = 2; const STOCK_NO_LIMIT = 2;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import { BaseDao } from '../sdk' import { BaseDao } from '../sdk'
import { ACTIVITY_CONFIG_DB_NAME, PRIZE_CONFIG_DB_NAME } from '../db' import { ACTIVITY_CONFIG_DB_NAME, PRIZE_CONFIG_DB_NAME } from '../db'
import { DELETE_STATUS, OPEN_PRIZE_STATUS } from '../constants' import { DELETE_STATUS, OPEN_PRIZE_STATUS, PRIZE_TYPE } from '../constants'
import { signFigures } from '../utils' import { signFigures } from '../utils'
export default class ActivityConfigService { export default class ActivityConfigService {
...@@ -292,7 +292,7 @@ export default class ActivityConfigService { ...@@ -292,7 +292,7 @@ export default class ActivityConfigService {
deleteStatus: DELETE_STATUS.EXIST deleteStatus: DELETE_STATUS.EXIST
}), }),
prizeConfig: await this.activityconfigPrizeDao.find( prizeConfig: await this.activityconfigPrizeDao.find(
{ activityId, deleteStatus: DELETE_STATUS.EXIST }, { activityId, deleteStatus: DELETE_STATUS.EXIST, type: { $ne: PRIZE_TYPE.THANK } },
{ sort: { level: 1 } } { sort: { level: 1 } }
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment