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.
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 [
/*
|--------------------------------------------------------------------------
| Btom 短信(与 wx.sstbc.com ymSms 一致)
|--------------------------------------------------------------------------
*/
'gateway' => env ( 'SMS_GATEWAY' , 'http://www.btom.cn:8080/simpleinter/sendSMS' ),
'app_id' => env ( 'SMS_APPID' ),
'secret' => env ( 'SMS_SECRETKEY' ),
/** 短信正文前缀,如:【苏州科技商学院】 */
'sign' => env ( 'SMS_SIGN' , '【创青春新消费】' ),
/** HTTP 超时(秒) */
'timeout' => ( int ) env ( 'SMS_HTTP_TIMEOUT' , 5 ),
/**
* 为 true 时不请求短信网关,仅写入缓存(用于无密钥环境)。
* 也可在 APP_DEBUG 且未配置 SMS_APPID 时自动走模拟(见 AuthSmsController) 。
*/
'mock' => env ( 'SMS_MOCK' , false ),
/**
* 为 true 时不调用短信网关,验证码写入缓存并在 JSON 中返回 debug_code( 本地调试用) 。
* 默认: APP_ENV=local 时为 true; 生产务必保持 false 或未置为 true。
*/
'skip_gateway' => filter_var (
env ( 'SMS_SKIP_GATEWAY' , env ( 'APP_ENV' ) === 'local' ),
FILTER_VALIDATE_BOOLEAN
),
/** 同一手机号两次发送最短间隔(秒),防刷 */
'resend_interval_seconds' => max ( 1 , ( int ) env ( 'SMS_RESEND_INTERVAL_SECONDS' , 60 )),
];