From 81989a26d7fa8021548f1b0f097a2fb96933e828 Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 13 Nov 2026 11:08:48 +0800 Subject: [PATCH] fix(demo): bind numeric quote validity explicitly for contract checks --- README.md | 2 +- examples/procurement/README.md | 2 +- examples/procurement/index.mq.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79f601c..47e250f 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ This is a **seven-tool, offline demonstration**. It knows the local supplier dir marqdo call examples/procurement/index.mq.md 查询采购商 "采购商状态='正常'" --json # 2. Quote: SUP_JN, 8 ball bearings × ¥36 = ¥288 (sample price). -marqdo call examples/procurement/index.mq.md 查询采购商价格 "采购商标识符='SUP_JN'" 数量=8 --json +marqdo call examples/procurement/index.mq.md 查询采购商价格 "采购商标识符='SUP_JN'" 数量=8 有效秒数=300 --json # 3. Budget: ¥600 - ¥120 = ¥480. marqdo call examples/procurement/index.mq.md 查询余额 已花费=120 --json diff --git a/examples/procurement/README.md b/examples/procurement/README.md index c151d8a..2d4a96d 100644 --- a/examples/procurement/README.md +++ b/examples/procurement/README.md @@ -15,7 +15,7 @@ This is a **local simulation** in one callable `.mq.md` source. It has no extern ```bash marqdo check examples/procurement/index.mq.md --narrative-ratio marqdo call examples/procurement/index.mq.md 查询采购商 "采购商状态='正常'" --json -marqdo call examples/procurement/index.mq.md 查询采购商价格 "采购商标识符='SUP_JN'" 数量=8 --json +marqdo call examples/procurement/index.mq.md 查询采购商价格 "采购商标识符='SUP_JN'" 数量=8 有效秒数=300 --json marqdo call examples/procurement/index.mq.md 查询余额 已花费=120 --json marqdo call examples/procurement/index.mq.md 向采购商发工单 "采购商标识符='SUP_JN'" 数量=8 单价=36 已花费=120 交付要求天数=7 --effects time.read,process.control --json marqdo call examples/procurement/index.mq.md 向采购商发工单 "采购商标识符='SUP_JN'" 数量=8 单价=36 已花费=360 交付要求天数=7 --effects time.read,process.control --json diff --git a/examples/procurement/index.mq.md b/examples/procurement/index.mq.md index 7cad705..531baef 100644 --- a/examples/procurement/index.mq.md +++ b/examples/procurement/index.mq.md @@ -278,7 +278,7 @@ marqdo call index.mq.md 向采购商发工单 "采购商标识符='SUP_BL'" 数 第二道门禁在本次调用中重新询价,既避免凭记忆下单,也防止调用方任意填写低价。 但此阶段重新拿到的是静态示例价格,并不是供应商确认的线上报价。 -我们先**报价 = [重新查本次商品与数量的模拟报价](查询采购商价格(采购商标识符=`采购商标识符`, 商品=`商品`, 数量=`数量`))**。 +我们先**报价 = [重新查本次商品与数量的模拟报价](查询采购商价格(采购商标识符=`采购商标识符`, 商品=`商品`, 数量=`数量`, 有效秒数=300))**。 1. `报价` == None 我们返回*[未查到报价,禁止生成工单](_拒绝模拟工单(原因="此供应商没有可用的示例报价"))*。