|
|
@ -51,13 +51,13 @@ class SmsAliSendService implements SmsSendServiceInterface |
|
|
->request(); |
|
|
->request(); |
|
|
return $result->toArray(); |
|
|
return $result->toArray(); |
|
|
} catch (ClientException $e) { |
|
|
} catch (ClientException $e) { |
|
|
$this->log->event('alisms', ['alisms_error_ClientException' => $e->getErrorMessage()]); |
|
|
|
|
|
|
|
|
$this->log->event('alisms', ['alisms_error_ClientException' => $e->getErrorMessage(), 'tel' => $tel, 'template' => json_encode($templateParams)]); |
|
|
throw new ErrorCodeException(ErrorCode::SMS_SEND_FAILURE); |
|
|
throw new ErrorCodeException(ErrorCode::SMS_SEND_FAILURE); |
|
|
} catch (ServerException $e) { |
|
|
} catch (ServerException $e) { |
|
|
$this->log->event('alisms', ['alisms_error_ServerException' => $e->getErrorMessage()]); |
|
|
|
|
|
|
|
|
$this->log->event('alisms', ['alisms_error_ServerException' => $e->getErrorMessage(), 'tel' => $tel, 'template' => json_encode($templateParams)]); |
|
|
throw new ErrorCodeException(ErrorCode::SMS_SEND_FAILURE); |
|
|
throw new ErrorCodeException(ErrorCode::SMS_SEND_FAILURE); |
|
|
} catch (Exception $e) { |
|
|
} catch (Exception $e) { |
|
|
$this->log->event('alisms', ['alisms_error_Exception' => $e->getErrorMessage()]); |
|
|
|
|
|
|
|
|
$this->log->event('alisms', ['alisms_error_Exception' => $e->getErrorMessage(), 'tel' => $tel, 'template' => json_encode($templateParams)]); |
|
|
throw new ErrorCodeException(ErrorCode::SMS_SEND_FAILURE); |
|
|
throw new ErrorCodeException(ErrorCode::SMS_SEND_FAILURE); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|