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.

52 lines
2.0 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),
/**
* 是否真实调用短信供应商。默认关闭,避免缺省配置误触达外部供应商。
5 months ago
*/
4 months ago
'enabled' => filter_var(
env('SMS_ENABLED', false),
5 months ago
FILTER_VALIDATE_BOOLEAN
),
1 month ago
/**
* 接口是否回传 debug_code(登录页临时展示验证码)。
* 未设置时:APP_ENV=local/testing 自动开启;正式 production 勿设为 true。
*/
'expose_debug_code' => filter_var(
env('SMS_EXPOSE_DEBUG_CODE', env('APP_ENV', 'production') === 'local' || env('APP_ENV', 'production') === 'testing'),
FILTER_VALIDATE_BOOLEAN
),
5 months ago
/** 同一手机号两次发送最短间隔(秒),防刷 */
'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' => [
4 months ago
// 腾讯云旧版应用级“指定模板单发短信”兼容接口。
'endpoint' => env('TENCENT_SMS_ENDPOINT', 'https://yun.tim.qq.com/v5/tlssmssvr/sendsms'),
4 months ago
'sdk_app_id' => env('TENCENT_SMS_SDK_APP_ID'),
4 months ago
'app_key' => env('TENCENT_SMS_APP_KEY'),
4 months ago
'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
];