...
|
...
|
@@ -22,7 +22,7 @@ class XzhIndexModel extends global.yoho.BaseModel { |
|
|
|
|
|
sendDataHistory(page) {
|
|
|
return util.sleep(3000).then(() => {
|
|
|
return this.getLastArticleList({page: 1});
|
|
|
return this.getLastArticleList({page: 1, limit: 1000});
|
|
|
}).then(rdata => {
|
|
|
rdata = _.get(rdata, 'data.artList', []);
|
|
|
|
...
|
...
|
@@ -52,6 +52,9 @@ class XzhIndexModel extends global.yoho.BaseModel { |
|
|
timeout: 8 * 1000
|
|
|
}).then(result => {
|
|
|
return JSON.parse(result || '{}');
|
|
|
}).catch(e => {
|
|
|
console.log(e.message);
|
|
|
return {code: 400, data: {}, message: e.message};
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -64,9 +67,6 @@ class XzhIndexModel extends global.yoho.BaseModel { |
|
|
return this.get({
|
|
|
url: '/guang/api/v2/article/getLastArticleList',
|
|
|
data: params,
|
|
|
param: {
|
|
|
cache: 86400
|
|
|
},
|
|
|
api: global.yoho.ServiceAPI
|
|
|
}).catch(e => {
|
|
|
console.log(e.message);
|
...
|
...
|
|