sendcard/config.php
2026-04-14 09:47:00 +08:00

25 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// 统一配置(建议改用环境变量/secret 管理,避免硬编码敏感信息)
return [
// 外部接口:获取 credentialsgetcard.php 与 getcard_poll.php 共用地址)
'external_base_url' => 'http://82.157.20.83:9091/api/cursorLoginZs/getCredentials',
// 机器 A仅 api/getcard.php 使用(即时取 token走 Web ?type=xianyu
'device_code' => 'BFEBFBFF000A06A4-5210N57MP0004BXP00R2-c84b8af03a6c40e888f72576a5f34a1f',
'device_code_md5' => 'bc5613415689b537679ba22c2feae68c',
// 机器 B仅 api/getcard_poll.php 使用(定时轮询,与 A 设备参数不同)
// 与 A 共用 external_base_url因上游常对「单设备 / 请求频次」有限制,用 B 分流轮询与即时请求。
'poll' => [
'device_code' => '178BFBFF00A20F10-190449138600155-c84b8af03a6c40e888f72576a5f34a1f',
'device_code_md5' => 'c6cc6802084015278275058c64bfb943',
],
// SQLite 数据库文件路径(相对当前项目目录)
'sqlite_path' => __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'sendcard.sqlite',
// getcard_poll 可选poll_log_txt、poll_state_jsonpoll_cron_key 非空时允许 Web ?key= 触发(慎用)
];