测试环境去除发送短信
This commit is contained in:
parent
a872e4ce0f
commit
5afe01d1cc
@ -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']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user