本次提交包含多项安全加固和体验优化: 1. 分离管理密钥与传输凭证,避免持 API Token 者伪造管理员票据 2. 钉钉回调地址增加白名单校验,防止开放重定向钓鱼 3. 初始管理员密码改为随机生成并日志记录,移除硬编码 123456 4. 新增登录防爆破计数表,支持 MySQL 多 worker 共享 5. 统一分页规范,新增 usePagedList composable 和 PagerBar 组件 6. 控制面 CORS 收敛为白名单,避免公网环境下任意站点跨域 7. 插件管理、凭证管理等列表接口支持分页和搜索 8. 强制初始密码修改,未改密前禁止使用管理功能 9. 定时任务触发被拒日志节流,避免授权失效时刷屏 10. 健康检查接口移除环境信息泄露,返回固定响应
70 lines
2.5 KiB
JSON
70 lines
2.5 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"id": "xq0045_xq0046",
|
|
"name": "金色印象通联数据导出",
|
|
"version": "1.0.5",
|
|
"description": "通联支付商户服务平台(cus.allinpay.com)交易数据自动导出:XQ0045 按日、XQ0046 按月,账号全量数据导出(含全部商户),服务端生成文件直存本地",
|
|
"category": "报表",
|
|
"icon": "",
|
|
"platform": "",
|
|
"uses_month": false,
|
|
"ui": true,
|
|
"capabilities": ["xq0045_xq0046"],
|
|
"permissions": {
|
|
"platforms": []
|
|
},
|
|
"fields": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mode": {
|
|
"type": "string",
|
|
"title": "执行模式",
|
|
"default": "日+月",
|
|
"enum": ["日", "月", "日+月"],
|
|
"description": "日/月/日+月:决定日期选择器粒度;交易查询与账单导出共用日期选择器,插件内部自动换算各自区间"
|
|
},
|
|
"content": {
|
|
"type": "string",
|
|
"title": "导出内容",
|
|
"default": "两个都导",
|
|
"enum": ["两个都导", "交易查询", "账单"],
|
|
"description": "交易查询=逐商户导交易明细(xlsx);账单=主账号日/月账单(zip 下载并解压)"
|
|
},
|
|
"day_date": {
|
|
"type": "string",
|
|
"format": "date",
|
|
"title": "按日导出",
|
|
"default": "",
|
|
"description": "默认昨天;交易查询区间 = 所选日 00:00 ~ 次日 24:00;账单 = 所选日账单"
|
|
},
|
|
"month_date": {
|
|
"type": "string",
|
|
"format": "month",
|
|
"title": "按月导出",
|
|
"default": "",
|
|
"description": "默认上月;交易查询区间 = 当月1日 10:00 ~ 下月1日 10:00(对账10点切日);账单 = 该月账单"
|
|
},
|
|
"tl_username": {
|
|
"type": "string",
|
|
"title": "通联登录账号",
|
|
"default": "",
|
|
"description": "商户服务平台登录账号(保存在本机,下次免填)"
|
|
},
|
|
"tl_password": {
|
|
"type": "string",
|
|
"title": "通联登录密码",
|
|
"default": "",
|
|
"format": "password",
|
|
"description": "仅保存在本机(%LOCALAPPDATA%\\37duAutomation\\plugin_configs),下次免填"
|
|
},
|
|
"save_dir": {
|
|
"type": "string",
|
|
"title": "保存目录",
|
|
"default": "",
|
|
"description": "留空=桌面/金色印象通联数据_YYYYMMDD;交易查询每日期一份全量文件(日_日期.xlsx / 月_月份.xlsx),账单按 账单_YYYYMM 目录存放"
|
|
}
|
|
},
|
|
"required": ["tl_username", "tl_password"]
|
|
}
|
|
}
|