You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
return [
/*
|--------------------------------------------------------------------------
| Tencent Cloud SMS
|--------------------------------------------------------------------------
*/
'driver' => env('SMS_DRIVER', 'tencentcloud'),
/** HTTP 超时(秒) */
'timeout' => (int) env('SMS_HTTP_TIMEOUT', 5),
/**
* 是否真实调用短信供应商。
* 默认local 环境为 false非 local 环境为 true。
*/
'enabled' => filter_var(
env('SMS_ENABLED', env('APP_ENV') !== 'local'),
FILTER_VALIDATE_BOOLEAN
),
/** 同一手机号两次发送最短间隔(秒),防刷 */
'resend_interval_seconds' => max(1, (int) env('SMS_RESEND_INTERVAL_SECONDS', 60)),
/** 验证码有效期(秒) */
'code_ttl_seconds' => max(60, (int) env('SMS_CODE_TTL_SECONDS', 300)),
'tencentcloud' => [
'endpoint' => env('TENCENT_SMS_ENDPOINT', 'sms.tencentcloudapi.com'),
'region' => env('TENCENT_SMS_REGION', 'ap-guangzhou'),
'sdk_app_id' => env('TENCENT_SMS_SDK_APP_ID'),
'app_key' => env('TENCENT_SMS_APP_KEY'),
'sign_name' => env('TENCENT_SMS_SIGN_NAME', '元禾控股'),
'template_id' => env('TENCENT_SMS_TEMPLATE_ID'),
'template_name' => env('TENCENT_SMS_TEMPLATE_NAME', '邮箱登陆验证码'),
'template_content' => env('TENCENT_SMS_TEMPLATE_CONTENT', '您正在尝试登录元禾控股邮件系统,验证码{1},有效期{2}分钟,如非本人操作,请尽快反馈给元禾沙湖信息技术部。'),
'template_param_count' => (int) env('TENCENT_SMS_TEMPLATE_PARAM_COUNT', 2),
],
];