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

5 months ago
<?php
return [
/*
|--------------------------------------------------------------------------
4 months ago
| Tencent Cloud SMS
5 months ago
|--------------------------------------------------------------------------
*/
4 months ago
'driver' => env('SMS_DRIVER', 'tencentcloud'),
5 months ago
/** HTTP 超时(秒) */
'timeout' => (int) env('SMS_HTTP_TIMEOUT', 5),
/**
4 months ago
* 是否真实调用短信供应商。
* 默认local 环境为 false非 local 环境为 true。
5 months ago
*/
4 months ago
'enabled' => filter_var(
env('SMS_ENABLED', env('APP_ENV') !== 'local'),
5 months ago
FILTER_VALIDATE_BOOLEAN
),
/** 同一手机号两次发送最短间隔(秒),防刷 */
'resend_interval_seconds' => max(1, (int) env('SMS_RESEND_INTERVAL_SECONDS', 60)),
4 months ago
/** 验证码有效期(秒) */
'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),
],
5 months ago
];