index.js
834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict';
const _ = require('lodash');
class SeoIndexModel extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
searchMipHandle(params) {
return Promise.all([
this.searchList(params),
this.searchList(params),
this.searchList(params)
]).then(rdata => {
console.log(rdata, ' --- ');
return rdata;
});
}
searchList(params) {
params = _.assign({
limit: 60,
status: 1,
sales: 'Y',
stocknumber: 1,
method: 'app.search.li',
attribute_not: 2
}, params);
return this.get({
data: params,
param: {
cache: true
}
});
}
}
module.exports = SeoIndexModel;