From f5c888813740e0adf5df9fc61a35049a068f40d7 Mon Sep 17 00:00:00 2001 From: gozareshgir Date: Tue, 13 Jan 2026 15:33:08 +0330 Subject: [PATCH] IsDev mode chak for instant sms --- .../SmsSettingApplication.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CompanyManagment.Application/SmsSettingApplication.cs b/CompanyManagment.Application/SmsSettingApplication.cs index 0536735e..6b1d5651 100644 --- a/CompanyManagment.Application/SmsSettingApplication.cs +++ b/CompanyManagment.Application/SmsSettingApplication.cs @@ -136,6 +136,12 @@ public class SmsSettingApplication : ISmsSettingApplication public async Task InstantSendReminderSms(List command) { var op = new OperationResult(); + if (_hostEnvironment.IsDevelopment()) + { + + return op.Failed(" در محیط توسعه امکان ارسال وجود ندارد "); + + } string typeOfSms = "یادآور بدهی ماهانه"; string sendMessStart = "شروع یادآور آنی"; string sendMessEnd = "پایان یادآور آنی"; @@ -156,6 +162,13 @@ public class SmsSettingApplication : ISmsSettingApplication public async Task InstantSendBlockSms(List command) { var op = new OperationResult(); + + if (_hostEnvironment.IsDevelopment()) + { + + return op.Failed(" در محیط توسعه امکان ارسال وجود ندارد "); + + } string typeOfSms = "اعلام مسدودی طرف حساب"; string sendMessStart = "شروع مسدودی آنی"; string sendMessEnd = "پایان مسدودی آنی ";