{
  "name": "国潮造物局 - 调用预算：超过上限就停止",
  "active": false,
  "nodes": [
    {
      "id": "manual",
      "name": "手动开始",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {}
    },
    {
      "id": "practice",
      "name": "虚构样本校验",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        260,
        0
      ],
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "const run = x=>x.used+x.next>x.limit?'停止':'允许';\nconst samples = [{\"used\": 8, \"next\": 3, \"limit\": 10}, {\"used\": 8, \"next\": 2, \"limit\": 10}];\nreturn samples.map(input=>({json:{input,result:run(input)}}));"
      }
    }
  ],
  "connections": {
    "手动开始": {
      "main": [
        [
          {
            "node": "虚构样本校验",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}