This commit is contained in:
邓皓元 2019-03-25 17:31:35 +08:00
parent 8da2f4b082
commit e053b6be6b
3 changed files with 3 additions and 6 deletions

View File

@ -218,6 +218,3 @@ class OrderBaseSync extends Command
return $orderItems;
}
}
echo strtotime('2018-10-01 00:00:00') - strtotime('2018-08-01 00:00:00');

View File

@ -109,7 +109,7 @@ export default {
this.current++;
} else {
this.circle.content = '同步失败';
this.circle.percent = this.steps[this.current - 1]['max'];
this.circle.percent = this.steps[this.current - 1] ? this.steps[this.current - 1]['max'] : 0;
this.status = 'error';
}
this.disabled = false;
@ -117,7 +117,7 @@ export default {
clearInterval(interval);
}).catch((err) => {
this.circle.content = '同步失败';
this.circle.percent = this.steps[this.current - 1]['max'];
this.circle.percent = this.steps[this.current - 1] ? this.steps[this.current - 1]['max'] : 0;
this.status = 'error';
this.disabled = false;
clearInterval(interval);

View File

@ -92,7 +92,7 @@ export default {
clearInterval(interval);
}).catch((err) => {
this.circle.content = '同步失败';
this.circle.percent = this.steps[this.current - 1]['max'];
this.circle.percent = this.steps[this.current - 1] ? this.steps[this.current - 1]['max'] : 0;
this.status = 'error';
this.disabled = false;
clearInterval(interval);