[update] Notice

This commit is contained in:
Lkeme 2021-04-03 17:17:50 +08:00
parent 86bc55fc1a
commit 11d5f2aa1f
2 changed files with 3 additions and 1 deletions

View File

@ -192,8 +192,10 @@ class Curl
// var_dump($e->getRequest());
if ($e->hasResponse()) var_dump($e->getResponse());
} catch (\Exception $e) {
// $e->getHandlerContext()
// var_dump($e);
}
Log::warning("Target -> URL: {$url} METHOD: {$method}");
Log::warning("CURl -> RETRY: {$retry} ERROR: {$e->getMessage()} ERRNO: {$e->getCode()} STATUS: Waiting for recovery!");
sleep(15);
}

View File

@ -320,7 +320,7 @@ class Notice
'user_id' => getenv('NOTIFY_CQ_QQ'),
'message' => $info['content']
];
$raw = Curl::post('other', $url, $payload);
$raw = Curl::get('other', $url, $payload);
// {"data":{"message_id":123456},"retcode":0,"status":"ok"}
$de_raw = json_decode($raw, true);
if ($de_raw['retcode'] == 0) {