sms.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 短信配置
  4. // +----------------------------------------------------------------------
  5. return [
  6. // 发送短信HTTP请求的超时时间(秒)
  7. 'timeout' => '5',
  8. // 默认发送配置
  9. 'default' => [
  10. // 网关调用策略,默认:顺序调用
  11. 'strategy' => 'Overtrue\EasySms\Strategies\OrderStrategy',
  12. // 默认可用的发送网关
  13. 'gateways' => [],
  14. ],
  15. // 可用的网关配置
  16. 'gateways' => [
  17. // 配置项后面的注释用于动态修改配置时定位
  18. 'aliyun' => [
  19. 'access_key_id' => '',#aliyun#
  20. 'access_key_secret' => '',#aliyun#
  21. 'sign_name' => '',#aliyun#
  22. ],
  23. 'qcloud' => [
  24. 'sdk_app_id' => '',#qcloud#
  25. 'secret_id' => '',#qcloud#
  26. 'secret_key' => '',#qcloud#
  27. 'sign_name' => '',#qcloud#
  28. ],
  29. 'qiniu' => [
  30. 'secret_key' => '',#qiniu#
  31. 'access_key' => '',#qiniu#
  32. ],
  33. 'yunpian' => [
  34. 'api_key' => '',#yunpian#
  35. 'signature' => '【默认签名】',#yunpian#
  36. ],
  37. ],
  38. ];