add header show SMSpanel
This commit is contained in:
@@ -35,9 +35,9 @@ class SmsGatewayService
|
||||
bool $isAlert = false
|
||||
): SmsSendResult {
|
||||
$config = $this->buildProviderConfig();
|
||||
$billingEnabled = SmsWalletService::isBillingEnabled();
|
||||
$billingOperational = SmsWalletService::isBillingOperational();
|
||||
|
||||
if ($billingEnabled && $this->walletService->isBlocked()) {
|
||||
if ($billingOperational && $this->walletService->isBlocked()) {
|
||||
return SmsSendResult::blocked();
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class SmsGatewayService
|
||||
|
||||
$providerName = $this->providerLabel($provider);
|
||||
|
||||
if ($billingEnabled) {
|
||||
if ($billingOperational) {
|
||||
$debit = $this->walletService->debitSuccessfulSms(
|
||||
$to,
|
||||
$text,
|
||||
|
||||
Reference in New Issue
Block a user