Files
pingan_new/config/aslong_sms.php
2020-08-06 16:42:18 +08:00

59 lines
1.5 KiB
PHP
Raw Permalink 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
return [
// 模拟调试,不会真正发送验证码,验证后也不会失效
'debug' => false,
// HTTP 请求的超时时间(秒)
'timeout' => 5.0,
// 项目名称
'product' => '共享马甲',
// 默认发送配置
'default' => [
// 网关调用策略,默认:顺序调用
'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,
// 默认可用的发送网关
'gateways' => [
'aliyun',
],
],
// 验证码长度
'length' => 4,
// 验证后立即失效
'once_used' => true,
// 模板与通道映射
'template' => [
'DEFAULT' => 'SMS_85730027',
'LOGIN' => 'SMS_85810026',
'REGISTER' => 'SMS_85720025',
],
// 可用的网关配置
'gateways' => [
'errorlog' => [
'file' => storage_path('logs/easy-sms.log'),
],
// 阿里云 AccessKeyID
'aliyun' => [
'access_key_id' => 'LTAI4Fsw6pWy4WYwK9vYpsk3',
'access_key_secret' => 'qOuR1MjhEVd9XDURC3QXcOHcWnLrx9',
'sign_name' => '如朗',
],
// 阿里云Rest
'aliyunrest' => [
'app_key' => '',
'app_secret_key' => '',
'sign_name' => '',
],
// 云片
'yunpian' => [
'api_key' => '',
'signature' => '',
],
// ... 具体参数请参考 https://github.com/overtrue/easy-sms/blob/master/README.md
],
];