Commit 4b973563 authored by hangjun83's avatar hangjun83

zkh

parent d8f1ea36
......@@ -231,11 +231,12 @@ class ZhenkhService
$dbConnect->table('soitems')->insert($soitems);
}
}
$dbConnect->commit();
return true;
}catch(\Throwable $exception){
$dbConnect->rollBack();
SimpleLogs::writeLog($exception->getMessage(),__CLASS__.":updateZhenkhOrders", 'error');
return false;
}
}
......
......@@ -296,6 +296,9 @@ class ZhenKhService
}
if($orderDetail){
$result = $this->zhenKhOrderService->updateZhenkhOrders($order,$orderDetail);
if(!$result){
$this->sendMail('订单同步邮件', '订单号:'.$order['purchaseOrderId'].'未同步成功');
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment