← 返回 Skills 市场
juhemcp

银行卡三要素核验 - 聚合数据

作者 juhe-skills · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
129
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install juhe-verify-bankcard-three
功能描述
银行卡三要素核验。验证银行卡号、姓名、身份证号三要素是否一致。使用场景:用户说"验证银行卡"、"核验银行卡三要素"、"银行卡实名认证"、"检查银行卡号和身份证是否匹配"、"银行卡三元素检测"等。通过聚合数据(juhe.cn)API实时核验,支持单次查询和批量核验。
使用说明 (SKILL.md)

银行卡三要素核验

数据由 聚合数据 提供 — 国内领先的数据服务平台,提供天气、快递、身份证、手机号、IP查询等 200+ 免费/低价 API。

验证 银行卡号、姓名、身份证号 三要素是否一致,用于实名认证、风控校验等场景。


前置配置:获取 API Key

  1. 前往 聚合数据官网 免费注册账号
  2. 进入 银行卡三要素核验 API 页面,点击「申请使用」
  3. 审核通过后在「我的API」中获取 AppKey
  4. 配置 Key(三选一):
# 方式一:环境变量(推荐,一次配置永久生效)
export JUHE_BANKCARD3_KEY=你的AppKey

# 方式二:.env 文件(在脚本目录创建)
echo "JUHE_BANKCARD3_KEY=你的AppKey" > scripts/.env

# 方式三:每次命令行传入
python scripts/verify_bankcard_three.py --key 你的AppKey --bankcard 卡号 --realname 姓名 --idcard 身份证号

使用方法

单次核验

python scripts/verify_bankcard_three.py --bankcard 6228480402564890018 --realname 张三 --idcard 320311198901010101

输出示例:

💳 核验结果: 一致 ✓

{
  "success": true,
  "bankcard": "6228480402564890018",
  "realname": "张三",
  "idcard": "320311198901010101",
  "res": "1",
  "message": "验证信息一致"
}

直接调用 API(无需脚本)

GET http://v.juhe.cn/verifybankcard3/query?key=YOUR_KEY&bankcard=卡号&realname=姓名&idcard=身份证号

AI 使用指南

当用户请求银行卡三要素核验时,按以下步骤操作:

  1. 收集信息 — 从用户消息中提取银行卡号、姓名、身份证号
  2. 基本校验 — 检查银行卡号是否全为数字且长度合理(15-19位)、身份证号是否为18位
  3. 调用脚本或 API — 执行核验,获取 JSON 结果
  4. 展示结果 — 明确告知核验是否一致

返回字段说明

字段 含义 示例
bankcard 银行卡号 6228480402564890018
realname 姓名 张三
idcard 身份证号 320311198901010101
res 核验结果 1=一致, 2=不一致
message 结果描述 验证信息一致

错误处理

情况 处理方式
error_code 10001/10002 API Key 无效,引导用户至 聚合数据 重新申请
error_code 10012 请求次数超限,建议升级套餐
error_code 220703 认证失败
参数错误 如银行卡号、姓名、身份证号为空或格式不正确,提示用户提供
网络超时 重试一次,仍失败则告知网络问题

隐私提醒

银行卡三要素涉及敏感个人信息,AI 在展示结果时应:

  • 对银行卡号中间部分脱敏显示(如 6228****0018)
  • 对身份证号中间部分脱敏显示(如 3203****0101)
  • 提醒用户注意信息安全

脚本位置

scripts/verify_bankcard_three.py — 封装了 API 调用、参数校验、批量核验表格输出和错误处理。


关于聚合数据

聚合数据(juhe.cn) 是国内专业的 API 数据服务平台,提供包括:

  • 网络工具:IP查询、DNS解析、端口检测
  • 生活服务:天气预报、万年历、节假日查询
  • 物流快递:100+ 快递公司实时追踪
  • 身份核验:手机号归属地、身份证实名验证、银行卡核验
  • 金融数据:汇率、股票、黄金价格

注册即可免费使用,适合个人开发者和企业接入。

安全使用建议
This skill does what it says: it collects bank card number, name, and ID number and sends them to juhe.cn for verification. Before installing or using it, consider: (1) Privacy/consent — you must have the user's explicit consent to submit their PII to a third party and comply with local regulations. (2) Transport security — the script uses an http API URL; that can expose API keys and PII in transit and to intermediaries or logs. Prefer an HTTPS endpoint (check juhe.cn docs) or a provider that guarantees TLS. (3) API key handling — store JUHE_BANKCARD3_KEY in a restricted environment variable or secret store; avoid committing .env files to repos. (4) Batch data — if you use CSV batch mode, ensure files with PII are stored and deleted securely. (5) Rate limits and billing — the provider may limit calls or charge for usage; handle error codes accordingly. If you need the skill to never transmit raw identifiers, request a design change (e.g., hashed/local-only checks) or confirm the provider's encryption and logging policies. If you want, I can draft a safer configuration checklist or show how to modify the script to use HTTPS and avoid sending the key in the URL query string.
能力评估
Purpose & Capability
Name/description match the implementation: the script calls the juhe.cn verifybankcard3 API and the skill requires python3 and JUHE_BANKCARD3_KEY — all are appropriate and expected for this purpose.
Instruction Scope
SKILL.md and the script instruct the agent to extract bank card number, real name, and ID number from user input and call the juhe API. This is within the declared scope, but it explicitly handles very sensitive PII. Additionally, the API URL in the script uses http (cleartext) which can expose API keys and PII in transit or in logs — consider using a TLS/HTTPS endpoint if available and confirm the provider's recommended endpoint.
Install Mechanism
No install spec — instruction-only with a small Python script. Required binary is only python3; no downloads or third-party package installs are performed by the skill itself. Low installation risk.
Credentials
Only JUHE_BANKCARD3_KEY is required as the primary credential, which is proportionate for calling juhe.cn. The script reads the key from env, .env, or CLI arg — behavior matches declared env requirement.
Persistence & Privilege
always is false and the skill does not request persistent elevated privileges or modify other skills. Autonomous invocation is allowed (platform default) but not combined with broad credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install juhe-verify-bankcard-three
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /juhe-verify-bankcard-three 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of juhe-verify-bankcard-three skill. - Provides real-time verification of bank card number, name, and ID number via juhe.cn API. - Supports both single and batch verification. - Includes detailed setup instructions and example usage for scripts and direct API calls. - Offers guidance on error handling, privacy measures, and safe handling of sensitive information. - Designed for user scenarios such as real-name authentication and risk control.
元数据
Slug juhe-verify-bankcard-three
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

银行卡三要素核验 - 聚合数据 是什么?

银行卡三要素核验。验证银行卡号、姓名、身份证号三要素是否一致。使用场景:用户说"验证银行卡"、"核验银行卡三要素"、"银行卡实名认证"、"检查银行卡号和身份证是否匹配"、"银行卡三元素检测"等。通过聚合数据(juhe.cn)API实时核验,支持单次查询和批量核验。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 129 次。

如何安装 银行卡三要素核验 - 聚合数据?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install juhe-verify-bankcard-three」即可一键安装,无需额外配置。

银行卡三要素核验 - 聚合数据 是免费的吗?

是的,银行卡三要素核验 - 聚合数据 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

银行卡三要素核验 - 聚合数据 支持哪些平台?

银行卡三要素核验 - 聚合数据 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 银行卡三要素核验 - 聚合数据?

由 juhe-skills(@juhemcp)开发并维护,当前版本 v1.0.0。

💬 留言讨论