...
|
...
|
@@ -22,7 +22,7 @@ class XzhIndexModel extends global.yoho.BaseModel { |
|
|
|
|
|
sendDataHistory(page) {
|
|
|
return util.sleep(3000).then(() => {
|
|
|
return this.getLastArticleList({page: 1, limit: 1000});
|
|
|
return this.getLastArticleList({page: page, limit: 1000});
|
|
|
}).then(rdata => {
|
|
|
let code = rdata.code || 400;
|
|
|
|
...
|
...
|
@@ -43,7 +43,7 @@ class XzhIndexModel extends global.yoho.BaseModel { |
|
|
sendData(data, type) {
|
|
|
|
|
|
if (data.length <= 0) {
|
|
|
return Promise.resolve({code: 400, data:{}, message: 'data is empty'});
|
|
|
return Promise.resolve({code: 400, data: {}, message: 'data is empty'});
|
|
|
}
|
|
|
|
|
|
type = type || 'batch';
|
...
|
...
|
|