作者 lyh

gx

... ... @@ -50,7 +50,6 @@ class SyncProject extends Command
public function handle()
{
$list = NoticeLog::where('type', NoticeLog::TYPE_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get();
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($list, true) . PHP_EOL, FILE_APPEND);
foreach ($list as $item){
try {
$api = new OaGlobalsoApi();
... ...
... ... @@ -40,9 +40,9 @@ class OaGlobalsoApi
'token' => $this->token,
'order_id' => $order_id,
];
try {
$res = HttpUtils::get($api_url, $params);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
$res = Arr::s2a($res);
} catch (\Exception | GuzzleException $e) {
errorLog('项目信息', $params, $e);
... ...