0
0

更新代码

This commit is contained in:
2020-08-04 10:09:42 +08:00
parent 6118b5b63b
commit c2ac5d964e
478 changed files with 34410 additions and 0 deletions

60
config/rulong_sms.php Normal file
View File

@@ -0,0 +1,60 @@
<?php
return [
// 模拟调试,不会真正发送验证码,验证后也不会失效
'debug' => false,
// HTTP 请求的超时时间(秒)
'timeout' => 5.0,
// 默认发送配置
'default' => [
// 网关调用策略,默认:顺序调用
'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,
// 默认可用的发送网关
'gateways' => [
'aliyun',
],
],
// 验证码长度
'length' => 4,
// 验证后立即失效
'once_used' => true,
// 模板与通道映射
'template' => [
'DEFAULT' => 'SMS_163439005',
'LOGIN' => '',
'BYCODE' => 'SMS_163439024',
'FORGOT' => 'SMS_163433753',
'BIND' => '',
],
// 可用的网关配置
'gateways' => [
'errorlog' => [
'file' => storage_path('logs/easy-sms.log'),
],
// 阿里云 AccessKeyID
'aliyun' => [
'access_key_id' => 'LTAIvmJMmaE7AEbD',
'access_key_secret' => 'LCNtWTfJC2wjRQlSWrOxVku9hQmIA0',
'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
],
];