first commit

This commit is contained in:
2026-04-14 09:47:00 +08:00
commit 56775e85f3
17 changed files with 1369 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?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= 触发(慎用)
];