Commit b2bb2ce7 by 杨树贤

完善日志

parent 97b3667b
...@@ -202,6 +202,7 @@ class SupplierSyncController extends BaseSyncController ...@@ -202,6 +202,7 @@ class SupplierSyncController extends BaseSyncController
// 然后更新供应商信息 // 然后更新供应商信息
$this->updateCrmSupplier($existingSupplier, $data); $this->updateCrmSupplier($existingSupplier, $data);
$this->syncResponse(0, 'CRM重新同步,状态已恢复为待确认并更新信息', ['supplier_id' => $existingSupplier['supplier_id']]); $this->syncResponse(0, 'CRM重新同步,状态已恢复为待确认并更新信息', ['supplier_id' => $existingSupplier['supplier_id']]);
LogService::AddLog($existingSupplier['supplier_id'], LogModel::UPDATE_OPERATE, 'CRM重新同步', 'CRM重新同步,状态已恢复为待确认并更新信息');
} catch (\Exception $e) { } catch (\Exception $e) {
Log::error('[CRM同步]恢复待确认状态并更新失败: ' . $e->getMessage(), ['data' => $data]); Log::error('[CRM同步]恢复待确认状态并更新失败: ' . $e->getMessage(), ['data' => $data]);
$this->syncResponse(-1, '恢复状态并更新失败: ' . $e->getMessage()); $this->syncResponse(-1, '恢复状态并更新失败: ' . $e->getMessage());
...@@ -216,6 +217,7 @@ class SupplierSyncController extends BaseSyncController ...@@ -216,6 +217,7 @@ class SupplierSyncController extends BaseSyncController
try { try {
$this->updateCrmSupplier($existingSupplier, $data); $this->updateCrmSupplier($existingSupplier, $data);
$this->syncResponse(0, 'CRM再次提交更新成功', ['supplier_id' => $existingSupplier['supplier_id']]); $this->syncResponse(0, 'CRM再次提交更新成功', ['supplier_id' => $existingSupplier['supplier_id']]);
LogService::AddLog($existingSupplier['supplier_id'], LogModel::UPDATE_OPERATE, 'CRM再次提交', 'CRM再次提交更新成功');
} catch (\Exception $e) { } catch (\Exception $e) {
Log::error('[CRM同步]再次提交更新失败: ' . $e->getMessage(), ['data' => $data]); Log::error('[CRM同步]再次提交更新失败: ' . $e->getMessage(), ['data' => $data]);
$this->syncResponse(-1, '更新失败: ' . $e->getTraceAsString()); $this->syncResponse(-1, '更新失败: ' . $e->getTraceAsString());
......
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 sign in to comment