作者 lyh

gx

... ... @@ -62,8 +62,10 @@ class SyncService
];
list($code, $result) = $this->curlRequest($url, $data);
Log::info('同步收件信息至表单系统: 项目ID:' . $project_id . ', data: ' . var_export($data, true) . ', result: ' . $result);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($result, true) . PHP_EOL, FILE_APPEND);
return true;
} catch (\Exception $e) {
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($e->getMessage(), true) . PHP_EOL, FILE_APPEND);
Log::info('同步收件信息至表单系统: 项目ID:' . $project_id . ', error: ' . $e->getMessage());
return false;
}
... ...