BwInvoice
Use the local invoice service script to initialize app keys, query quota and packages, verify invoice text or images, batch-verify local folders, and create...
Like a lobster shell, security has layers — review code before you run it.
License
Runtime requirements
SKILL.md
说明:本技能固定使用
http://asset-check-innovate-service-http.default.yf-bw-test-2.test.51baiwang.com作为 API base URL,config set --api-base-url不可用。
Invoice Verification Service
Use this skill when the user wants to:
- Query remaining invoice verification quota
- Show recharge packages
- Verify invoice text
- Verify a local invoice image
- Batch-verify invoice images in a local folder
- Create or query a recharge order
Script
Always run:
node "{baseDir}/scripts/invoice_service.js" <action> ...
First-Time Setup
The skill always uses the built-in API base URL https://test.51yzt.cn/assetInnovate. There is no config set --api-base-url option.
Initialize the app key once:
node "{baseDir}/scripts/invoice_service.js" init-key
Common Commands
Show current config:
node "{baseDir}/scripts/invoice_service.js" config show
Query packages:
node "{baseDir}/scripts/invoice_service.js" packages
Query remaining quota:
node "{baseDir}/scripts/invoice_service.js" quota
Query ledger:
node "{baseDir}/scripts/invoice_service.js" ledger --page 1 --page-size 20
Verify invoice text:
node "{baseDir}/scripts/invoice_service.js" verify --text "<invoice text>" --format json
Verify a local image:
node "{baseDir}/scripts/invoice_service.js" verify-image --image-file C:\path\invoice.png --format json
Verify an uploaded image payload (base64/data-url):
node "{baseDir}/scripts/invoice_service.js" verify-image --image "<data:image/...;base64,...>" --format json
Batch-verify a local folder:
node "{baseDir}/scripts/invoice_service.js" verify-directory --dir C:\path\invoice-images --format json
Create a recharge order:
node "{baseDir}/scripts/invoice_service.js" create-order --amount 10
Query an order:
node "{baseDir}/scripts/invoice_service.js" query-order --order-no ORDER123456789
Behavior Rules
- Prefer
quotawhen the user asks for remaining count. - Prefer
packageswhen the user asks for available recharge plans. - Prefer
verify-imagewhen the user provides a local image path. - Prefer
verify-imagewhen the user provides an uploaded image (base64/data-url) too. - Prefer
verify-directorywhen the user provides a local folder path with many invoice images. - Prefer
create-orderwhen the user explicitly chooses a package amount. - For any
verify-imagecall, explicitly tell the user it consumes 2 quota each time. - After
create-order, report the payment link plus all available QR codes (returned indata.qrCodes). The script now polls settlement by default and returnsdata.orderPolling+data.paymentSettled; ifpaymentSettled=true, explicitly tell the user recharge has arrived. - Return the script JSON result directly and do not invent fields.
- When the user says “帮我安装这个技能” or similar install request, reply with the install command
clawhub install bw-invoice-verification-service, remind them to restart OpenClaw, and ask them to say “帮我初始化” or send$bw-invoice-verification-service init-keyonce installation completes—note that “帮我安装” alone only installs the skill and does not run init-key.
Files
4 totalComments
Loading comments…
