测试环境去除发送短信

This commit is contained in:
wucongxing 2023-08-31 08:53:49 +08:00
parent a872e4ce0f
commit 5afe01d1cc

View File

@ -74,6 +74,11 @@ class Dysms
public static function sendSms(string $phone_numbers,array $template_param,string $template_code,string $scene_desc = ""): void
{
try {
$app_env = config('app_env','dev');
if ($app_env == "dev"){
return;
}
$config = config("alibaba.dysms");
$client = self::createClient($config['accessKey'], $config['accessKeySecret']);