fixed bugs (#14)
This commit is contained in:
parent
d034519254
commit
3655e81011
@ -48,7 +48,7 @@ class ApiHelper {
|
|||||||
|
|
||||||
$orders = $this->filterOrders($orders);
|
$orders = $this->filterOrders($orders);
|
||||||
|
|
||||||
$this->uploadOrders($orders);
|
return $this->uploadOrders($orders);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function uploadOrders($orders) {
|
protected function uploadOrders($orders) {
|
||||||
|
2
run.php
2
run.php
@ -19,7 +19,7 @@ if (file_exists($lockFile)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file_put_contents("run.lock", strtotime('+5 minutes'));
|
file_put_contents($lockFile, strtotime('+5 minutes'));
|
||||||
|
|
||||||
if (file_exists(__DIR__ . "/logs/sync.log")) {
|
if (file_exists(__DIR__ . "/logs/sync.log")) {
|
||||||
$config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log");
|
$config['date_from'] = file_get_contents(__DIR__ . "/logs/sync.log");
|
||||||
|
Loading…
Reference in New Issue
Block a user