opensms
This commit is contained in:
@@ -75,26 +75,26 @@ if (! function_exists('sendSMS')) {
|
|||||||
|
|
||||||
return [];
|
return [];
|
||||||
|
|
||||||
// $response = Http::withToken('WsTEJTBGlQiJ')
|
$response = Http::withToken('WsTEJTBGlQiJ')
|
||||||
// ->retry(
|
->retry(
|
||||||
// times: 3,
|
times: 3,
|
||||||
// sleepMilliseconds: 50,
|
sleepMilliseconds: 50,
|
||||||
// throw: false,
|
throw: false,
|
||||||
// when: function (Exception $exception, PendingRequest $request) {
|
when: function (Exception $exception, PendingRequest $request) {
|
||||||
// Log::channel('sms_api_error')
|
Log::channel('sms_api_error')
|
||||||
// ->error('Exception: ', [
|
->error('Exception: ', [
|
||||||
// 'message' => $exception->getMessage(),
|
'message' => $exception->getMessage(),
|
||||||
// 'line' => $exception->getLine(),
|
'line' => $exception->getLine(),
|
||||||
// ]);
|
]);
|
||||||
|
|
||||||
// return true;
|
return true;
|
||||||
// })
|
})
|
||||||
// ->post('https://sms.post.gov.tm/api/clients/sms/create', [
|
->post('https://sms.post.gov.tm/api/clients/sms/create', [
|
||||||
// 'phone' => '993'.$phone,
|
'phone' => '993'.$phone,
|
||||||
// 'content' => $message,
|
'content' => $message,
|
||||||
// ]);
|
]);
|
||||||
|
|
||||||
// return $response->json();
|
return $response->json();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user