first commit

This commit is contained in:
2020-08-06 16:42:18 +08:00
commit eb792c34aa
12972 changed files with 1511424 additions and 0 deletions

58
config/aslong_sms.php Normal file
View File

@@ -0,0 +1,58 @@
<?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
],
];