平时分+期中+期末按权重算总评,或算保研综合分、奖学金评定分。填各项分数和权重,自动校验权重之和。
curl -X POST https://api.liuwangcun.com/api/tool/weighted-score \
-H "content-type: application/json" \
-H "payment-proof: <支付宝/ x402 付款凭证>" \
-d '{ "parts": [{"name":"平时","score":90,"weight":0.3},{"name":"期末","score":85,"weight":0.7}] }(权重填小数和1或整数和100)'
未带付款凭证时返回 HTTP 402 + Payment-Needed 头(含金额、收款方、资源路径),Agent 可直接解析并完成支付后重试。
{ "parts": [{"name":"平时","score":90,"weight":0.3},{"name":"期末","score":85,"weight":0.7}] }(权重填小数和1或整数和100)纯确定性计算,无模型推理、无外部数据查询;不扣款、不写入、不查询任何第三方系统。返回结果含免责声明,仅供参考。