|
|
@@ -40,12 +40,16 @@ class CompilationModel extends BaseModel {
|
|
|
*
|
|
|
* @return {Promise}
|
|
|
*/
|
|
|
- async getList() {
|
|
|
+ async getList(host) {
|
|
|
// 筛选字段
|
|
|
let field = {_id: 1, name: 1, is_release: 1, description: 1, categoryID: 1};
|
|
|
let compilationData = await this.findDataByCondition({name: {$ne: ''}, is_release: true}, field, false);
|
|
|
|
|
|
- return compilationData === null ? [] : compilationData;
|
|
|
+ compilationData === null ? [] : compilationData;
|
|
|
+ if (host && /cgyh.smartcost.com.cn/.test(host)) {
|
|
|
+ compilationData = compilationData.filter(item => ['四川养护(2013)'].includes(item.name));
|
|
|
+ }
|
|
|
+ return compilationData
|
|
|
}
|
|
|
|
|
|
/**
|