|
|
@@ -99,7 +99,7 @@ class OrderCron
|
|
|
foreach ($this->enterprises as $item) {
|
|
|
//检查企业是否配置订单未支付自动关闭
|
|
|
if (empty((int) $item['orderAutoCloseSec'])) {
|
|
|
- file_put_contents('/www/wwwroot/logs/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '未配置订单自动关闭时间,不进行处理' . PHP_EOL, FILE_APPEND);
|
|
|
+ file_put_contents('/www/wwwroot/logs/apiqnys.liuniukj.com/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '未配置订单自动关闭时间,不进行处理' . PHP_EOL, FILE_APPEND);
|
|
|
echo $item['enterpriseName'].'未配置自动取消时间'.PHP_EOL;
|
|
|
continue;
|
|
|
}
|
|
|
@@ -116,7 +116,7 @@ class OrderCron
|
|
|
// 根据索引表查询订单索引数据
|
|
|
$orderList = $this->objDOrderIndex->query($sql);
|
|
|
if ($orderList === false) {
|
|
|
- file_put_contents('/www/wwwroot/logs/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '查询订单时出错' . $this->objDOrderIndex->error() . PHP_EOL, FILE_APPEND);
|
|
|
+ file_put_contents('/www/wwwroot/logs/apiqnys.liuniukj.com/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '查询订单时出错' . $this->objDOrderIndex->error() . PHP_EOL, FILE_APPEND);
|
|
|
echo '查询订单时出错'.$this->objDOrderIndex->error().PHP_EOL;
|
|
|
continue;
|
|
|
}
|
|
|
@@ -153,7 +153,7 @@ class OrderCron
|
|
|
['id' => $row]
|
|
|
);
|
|
|
if ($orderUpdate === false) {
|
|
|
- file_put_contents('/www/wwwroot/logs/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . 'update订单时出错' . $this->objDOrder->error() . PHP_EOL, FILE_APPEND);
|
|
|
+ file_put_contents('/www/wwwroot/logs/apiqnys.liuniukj.com/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . 'update订单时出错' . $this->objDOrder->error() . PHP_EOL, FILE_APPEND);
|
|
|
$this->objDOrderIndex->rollBack();
|
|
|
die('更新订单时出错');
|
|
|
}
|
|
|
@@ -162,7 +162,7 @@ class OrderCron
|
|
|
$objMInventory = new MInventory($item['enterpriseId'], '');
|
|
|
$unlockResult = $objMInventory->unlockInventory($row, StatusCode::$orderType['saleOrder'], $this->nowTime);
|
|
|
if (!$unlockResult->isSuccess()) {
|
|
|
- file_put_contents('/www/wwwroot/logs/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '解锁库存时出错' . $unlockResult->getData() . PHP_EOL, FILE_APPEND);
|
|
|
+ file_put_contents('/www/wwwroot/logs/apiqnys.liuniukj.com/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '解锁库存时出错' . $unlockResult->getData() . PHP_EOL, FILE_APPEND);
|
|
|
$this->objDOrderIndex->rollBack();
|
|
|
die('关闭订单时解锁库存失败');
|
|
|
}
|
|
|
@@ -181,7 +181,7 @@ class OrderCron
|
|
|
);
|
|
|
|
|
|
if ($orderIndexUpdate === false) {
|
|
|
- file_put_contents('/www/wwwroot/logs/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '解锁库存时出错' . $this->objDOrderIndex->error() . PHP_EOL, FILE_APPEND);
|
|
|
+ file_put_contents('/www/wwwroot/logs/apiqnys.liuniukj.com/cron.log', date('Y-m-d H:i:s') . $item['enterpriseName'] . '解锁库存时出错' . $this->objDOrderIndex->error() . PHP_EOL, FILE_APPEND);
|
|
|
$this->objDOrderIndex->rollBack();
|
|
|
die('更新订单索引表时出错');
|
|
|
}
|