Files

163 lines
5.0 KiB
PHP
Raw Permalink Normal View History

2025-05-12 00:19:35 +08:00
<?php
return [
/*
* 过期时间配置
*/
'time_out' => [
// 订单
'product_order' => [
'over_time' => 24*3600,//秒,自动取消时间
// 'over_time' => 3,//秒,自动取消时间
'received_time' => 7*24*3600,//自动确认收货时间
'forbidden_refund_time' => 30*24*3600, //不允许退款时间
'settlement_time' => 0//7*24*3600//订单发货 分账自动结算时间
],
// 处方
'prescription' => [
'over_time' => 24*3600 //处方审核自动失效时间
// 'over_time' => 0 //处方审核自动失效时间
],
],
2026-08-10 13:58:14 +08:00
/*
* JWT 配置HS256 密钥至少 32 字节,否则 firebase/php-jwt Provided key is too short
*/
'jwt' => [
'secret' => env('JWT_SECRET', 'nl_admin_jwt_secret_key_change_me_32b'),
],
2026-08-10 15:51:00 +08:00
/*
* 库内敏感字段 AES 密钥(密文前缀 nl_ase_256_读取兼容历史 ***
* 对应 .envENCRYPT_KEY
*/
'encrypt_key' => env('ENCRYPT_KEY', ''),
/*
* 传输层 ase_encode / ase_decode 随机盐长度(与历史 helpers 兼容)
*/
'ase_len' => (int) env('ASE_LEN', 30),
2025-05-12 00:19:35 +08:00
/*
* redis配置
*/
'redis' => [
2026-08-10 15:51:00 +08:00
'jwt' => 'nl_login_',
2025-05-12 00:19:35 +08:00
'jwt_ttl' => 360000,
// 'jwt_ttl' => 360,
2026-08-10 15:51:00 +08:00
'email' => 'nl_email_',
'phone' => 'nl_phone_',
'login_out_key' => 'nl_login_out_',
'menu_key' => 'nl_menu_',
// 公众号 stable access_token 缓存前缀key = 前缀 + appidTTL 随微信 expires_in
'wechat_token' => 'nl_wechat_at_',
2025-05-12 00:19:35 +08:00
],
/*
* api白名单
*/
'api' => [
'white_list' => [
'/api/admin/login',
'/api/admin/register',
]
],
/*
* 阿里云oss配置
*/
'oss' => [
2026-08-10 15:51:00 +08:00
'redis_key' => 'nl_oss_url_',
2025-05-12 00:19:35 +08:00
'ali' => [
'accessKeyId' => env('OSS_ACCESS_KEY_ID'),
'accessKeySecret' => env('OSS_ACCESS_KEY_SECRET'),
'endpoint' => env('OSS_ENDPOINT'),
'bucket' => env('OSS_BUCKET'),
'domain' => env('OSS_DOMAIN'),
],
'qiniu' => [
2026-08-10 18:32:06 +08:00
'access_key' => env('QINIU_ACCESS_KEY', ''),
'secret_key' => env('QINIU_SECRET_KEY', ''),
'bucket' => env('QINIU_BUCKET', ''),
'domain' => env('QINIU_DOMAIN', ''),
2025-05-12 00:19:35 +08:00
]
],
/*
* 短信配置
*/
'sms' => [
'ali' => [
'status' => '1',
'access_key_id' => env('ALIYUN_SMS_ACCESS_KEY_ID'),
'access_key_secret' => env('ALIYUN_SMS_ACCESS_KEY_SECRET'),
'sign_name' => env('ALIYUN_SMS_SIGN_NAME'),
'captcha' => [
"template_id" => "SMS_275060336", // 模板id
"template_variable" => "code", //模板变量
],
"doctor" => [
"register" => [ //挂号订单提醒
"template_id" => "SMS_462205458",
"template_variable" => ""
],
"prescription_pass" => [
"template_id" => "SMS_462260412",
"template_variable" => "order"
],
"prescription_refuse" => [
"template_id" => "SMS_462230433",
"template_variable" => [
"order",
"cause"
]
]
],
"pharmacist" => [
"wait_approval" => [
"template_id" => "SMS_462255406",
"template_variable" => ""
]
]
]
],
/*
* 旧接口配置
*/
'base_url' => [
'old_api' => env('BASE_OLD_API_URL', ''),
'old_shop_api' => env('BASE_OLD_SHOP_API_URL', ''),
// 微信接口
'we_chat_api' => env('BASE_WE_CHAT_API_URL', ''),
],
/*
* 日志配置
*/
'log' => [
2026-08-10 18:32:06 +08:00
// 不添加返回记录的api接口路径不含 /api/ 前缀,与中间件规范化后一致)
2025-05-12 00:19:35 +08:00
'no_insert' => [
2026-08-10 18:32:06 +08:00
'login',
'register',
'admin/my-info',
'admin/codes',
'admin/menu',
'admin/login-log',
'admin/op-log',
'api-endpoint/list',
'oss-config/runtime-options',
'oss-config/driver-options',
'oss-config/list',
'ai-config/runtime-options',
'ai-config/key-list',
'ai-config/platform-option',
'ai-config/generation-list',
'wechat-account/list',
'wechat-account/option',
'wechat-article/list',
'wechat-article/version-list',
2025-05-12 00:19:35 +08:00
]
],
'app' => [
'we_chat' => [
'app_id' => '',
'app_secret' => '',
'merchant_id' => '',
'merchant_key' => '',
'apiclient_cert' => '',
'apiclient_key' => ''
]
],
];