diff --git a/app/Listeners/SendWorkflowCheckSuccessNotification.php b/app/Listeners/SendWorkflowCheckSuccessNotification.php index 2752b4a..5ce4a3e 100644 --- a/app/Listeners/SendWorkflowCheckSuccessNotification.php +++ b/app/Listeners/SendWorkflowCheckSuccessNotification.php @@ -37,6 +37,11 @@ class SendWorkflowCheckSuccessNotification implements ShouldQueue $applyAt = $event->workflowCheck->created_at; } + // 本地环境不发送短信 + if (config('app.env') == 'local') { + return; + } + $client = new EasySms(config('easysms')); $client->send($phone, [