dggjimai/config/sms.php

36 lines
902 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 短信配置主要针对EasySms
* @author lisong<377344020@qq.com>
* @date 2020/06/19
*/
return [
// HTTP 请求的超时时间(秒)
'timeout' => 5.0,
// 默认发送配置
'default' => [
// 网关调用策略,默认:顺序调用
'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,
// 默认可用的发送网关
'gateways' => [
'yunpian', 'aliyun',
],
],
// 可用的网关配置
'gateways' => [
'errorlog' => [
'file' => app()->getRuntimePath().'sms/easy-sms.log',
],
'aliyun' => [
'access_key_id' => 'xxxxxxxxxx',
'access_key_secret' => 'xxxxxxxxxx',
'sign_name' => 'xxxxxxxxxx',
],
'yunpian' => [
'api_key' => 'xxxxxxxxxx',
],
//...
],
];