{
  "result": {
    "stats": {
      "steps": {
        "total": 7,
        "passed": 7,
        "failed": 0
      },
      "iterations": {
        "total": 1,
        "pending": 0,
        "failed": 0
      },
      "items": {},
      "scripts": {
        "total": 16,
        "pending": 0,
        "failed": 0
      },
      "prerequests": {
        "total": 7,
        "pending": 0,
        "failed": 0
      },
      "requests": {
        "total": 7,
        "pending": 0,
        "failed": 0
      },
      "socketRequests": {
        "total": 0,
        "pending": 0,
        "failed": 0
      },
      "tests": {
        "total": 7,
        "pending": 0,
        "failed": 0
      },
      "assertions": {
        "total": 6,
        "pending": 0,
        "failed": 0
      },
      "testScripts": {
        "total": 10,
        "pending": 0,
        "failed": 0
      },
      "prerequestScripts": {
        "total": 6,
        "pending": 0,
        "failed": 0
      }
    },
    "timings": {
      "responseTime": 2650,
      "responseAverage": 214.9027021054153,
      "responseMin": 120,
      "responseMax": 711,
      "responseSd": 247.65079053251912,
      "dnsAverage": 0,
      "dnsMin": 0,
      "dnsMax": 0,
      "dnsSd": 0,
      "firstByteAverage": 0,
      "firstByteMin": 0,
      "firstByteMax": 0,
      "firstByteSd": 0,
      "started": 1783576725822,
      "completed": 1783576728769
    },
    "transfers": {
      "responseTotal": 4184
    },
    "failures": [],
    "stepTree": [
      {
        "ref": "683ee1e8-f831-46e0-9df9-ade934e5aa2f",
        "type": "http"
      },
      {
        "ref": "67ed9b4c-9f4d-496e-9d7b-4cbc341309f0",
        "type": "http"
      },
      {
        "ref": "6d70dd09-605e-4169-aa1c-590d5af0fec8",
        "type": "http"
      },
      {
        "ref": "b44f1d49-9d69-4b5f-8f91-8eec9eb356dc",
        "type": "http"
      },
      {
        "ref": "ca574ac9-59d0-44b7-9053-e6c480489338",
        "type": "http"
      },
      {
        "ref": "48513075-c97c-42b8-90d7-0da6a5f4a0e7",
        "type": "http"
      },
      {
        "ref": "d7069e35-b982-4f3d-878a-f28eb6355c3e",
        "type": "http"
      }
    ],
    "error": null
  },
  "isTestFlowControl": false,
  "run": {
    "stats": {
      "steps": {
        "total": 7,
        "passed": 7,
        "failed": 0
      },
      "iterations": {
        "total": 1,
        "pending": 0,
        "failed": 0
      },
      "items": {},
      "scripts": {
        "total": 16,
        "pending": 0,
        "failed": 0
      },
      "prerequests": {
        "total": 7,
        "pending": 0,
        "failed": 0
      },
      "requests": {
        "total": 7,
        "pending": 0,
        "failed": 0
      },
      "socketRequests": {
        "total": 0,
        "pending": 0,
        "failed": 0
      },
      "tests": {
        "total": 7,
        "pending": 0,
        "failed": 0
      },
      "assertions": {
        "total": 6,
        "pending": 0,
        "failed": 0
      },
      "testScripts": {
        "total": 10,
        "pending": 0,
        "failed": 0
      },
      "prerequestScripts": {
        "total": 6,
        "pending": 0,
        "failed": 0
      }
    },
    "timings": {
      "responseTime": 2650,
      "responseAverage": 214.9027021054153,
      "responseMin": 120,
      "responseMax": 711,
      "responseSd": 247.65079053251912,
      "dnsAverage": 0,
      "dnsMin": 0,
      "dnsMax": 0,
      "dnsSd": 0,
      "firstByteAverage": 0,
      "firstByteMin": 0,
      "firstByteMax": 0,
      "firstByteSd": 0,
      "started": 1783576725822,
      "completed": 1783576728769
    },
    "transfers": {
      "responseTotal": 4184
    },
    "failures": [],
    "stepTree": [
      {
        "ref": "683ee1e8-f831-46e0-9df9-ade934e5aa2f",
        "type": "http"
      },
      {
        "ref": "67ed9b4c-9f4d-496e-9d7b-4cbc341309f0",
        "type": "http"
      },
      {
        "ref": "6d70dd09-605e-4169-aa1c-590d5af0fec8",
        "type": "http"
      },
      {
        "ref": "b44f1d49-9d69-4b5f-8f91-8eec9eb356dc",
        "type": "http"
      },
      {
        "ref": "ca574ac9-59d0-44b7-9053-e6c480489338",
        "type": "http"
      },
      {
        "ref": "48513075-c97c-42b8-90d7-0da6a5f4a0e7",
        "type": "http"
      },
      {
        "ref": "d7069e35-b982-4f3d-878a-f28eb6355c3e",
        "type": "http"
      }
    ],
    "error": null
  },
  "options": {
    "accessToken": "afxp_b1d5f2P6pF4rgO0gfdfOM5ACs4HJwauEi57o",
    "apiBaseUrl": "https://api.apifox.com",
    "testSuite": [
      2100
    ],
    "environment": 45671644,
    "reporters": [
      "cli",
      "json",
      "junit",
      "html"
    ],
    "outDir": "work_store/apifox/2026-07-09-full-automation-run/reports/suite-2100",
    "outFile": "suite-2100",
    "originalOutFile": "suite-2100",
    "onError": "continue",
    "envVar": [],
    "globalVar": [],
    "color": "off",
    "delayRequest": 0,
    "timeoutRequest": 30000,
    "timeoutScript": 30000,
    "enableBigInt": false,
    "disableRejectUnauthorized": false,
    "maxRetries": 3,
    "allowSecuritySensitiveActions": true,
    "reporterOptions": {
      "name": "智慧营养健康餐厅自动化：运营人员主流程",
      "runnerId": "fc6d9b64-b8dd-40b7-aa7b-8e00179f0726",
      "testSuiteId": 2100,
      "executionCount": 1
    },
    "isUploadReportSummary": false,
    "apifoxVersion": "2.2.6",
    "globals": {},
    "teamGlobals": {}
  },
  "collection": {
    "apifoxCli": "1.1.0",
    "item": [
      {
        "item": [
          {
            "id": "70fd79be-93b7-43cc-a8a6-f7bf12dbd58d",
            "name": "食物成分添加",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "p",
                  "food",
                  "add"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "baseUrl": "https://zhct.yyangpt.cn",
              "body": {
                "mode": "urlencoded",
                "urlencoded": [
                  {
                    "disabled": false,
                    "key": "name",
                    "value": "小炒辣椒"
                  },
                  {
                    "disabled": false,
                    "key": "edible_part",
                    "value": "100"
                  },
                  {
                    "disabled": false,
                    "key": "energy",
                    "value": "349"
                  },
                  {
                    "disabled": false,
                    "key": "protein",
                    "value": "11.2"
                  },
                  {
                    "disabled": false,
                    "key": "fat",
                    "value": "1.5"
                  },
                  {
                    "disabled": false,
                    "key": "carbohydrate",
                    "value": "73.6"
                  },
                  {
                    "disabled": false,
                    "key": "category",
                    "value": "1"
                  },
                  {
                    "disabled": false,
                    "key": "minute_sort",
                    "value": "2"
                  },
                  {
                    "disabled": false,
                    "key": "cooking_food",
                    "value": "3"
                  },
                  {
                    "disabled": false,
                    "key": "common_ingredients",
                    "value": "1"
                  },
                  {
                    "disabled": true,
                    "key": "origin",
                    "value": "test"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "prerequest",
                "script": {
                  "id": "commonScript.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "  ____string2Array = function(value) {",
                    "    if(typeof value === 'object'){",
                    "      return value;",
                    "    }",
                    "    try {",
                    "      return JSON.parse(value);",
                    "    } catch (e) {",
                    "      return value;",
                    "    }",
                    "  }",
                    "  ____string2Number = function(value, errorMsg) {",
                    "   if(typeof value !== 'string'){",
                    "     return value;",
                    "   }",
                    "   if (/^\\-?\\d+$/.test(value)) {",
                    "       return parseInt(value);",
                    "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                    "       return parseFloat(value);",
                    "   } else {",
                    "       throw new Error(errorMsg || 'Data type mismatch')",
                    "   }",
                    " }",
                    "",
                    "  ____formatValues = function(value, stringCompareValue, comparison) {",
                    "   try{",
                    "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                    "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                    "     let compareValue;",
                    "     switch (typeof value) {",
                    "         case 'string':",
                    "             if (isNumberComparisons) {",
                    "                value = ____string2Number(value);",
                    "                compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "                compareValue = ____string2Array(stringCompareValue);",
                    "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                    "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                    "             } else {",
                    "                compareValue = stringCompareValue;",
                    "             }",
                    "             break;",
                    "         case 'object':",
                    "             const isArray = value instanceof Array;",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                    "             } else if (isCollectionComparisons && isArray) {",
                    "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                    "            } else if (",
                    "              isArray &&",
                    "              comparison === 'include' &&",
                    "              value.includes(stringCompareValue)",
                    "            ) {",
                    "              compareValue = stringCompareValue;",
                    "            } else {",
                    "              try {",
                    "                  compareValue = JSON.parse(stringCompareValue);",
                    "              } catch (e) {",
                    "                  compareValue = stringCompareValue;",
                    "              }",
                    "            }",
                    "             break;",
                    "         case 'boolean':",
                    "             if (isNumberComparisons || isCollectionComparisons) {",
                    "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                    "             break;",
                    "           case 'bigint':",
                    "           case 'number':",
                    "             if (isNumberComparisons) {",
                    "               compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "              value = '' + value;",
                    "            } else {",
                    "               compareValue = stringCompareValue;",
                    "               value = '' + value;",
                    "             }",
                    "             break;",
                    "         case 'null':",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                    "             break;",
                    "         default:",
                    "            if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "            } else {",
                    "              compareValue = stringCompareValue;",
                    "            }",
                    "            break;",
                    "     }",
                    "     return { compareValue, value };",
                    "   } catch(e) {",
                    "     console.log(e);",
                    "     throw e;",
                    "   }",
                    " }",
                    " "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "  async function ____replaceIn(value) {",
                    "    if (typeof pm.variables.replaceInAsync === 'function') {",
                    "      return await pm.variables.replaceInAsync(value);",
                    "    }",
                    "    return pm.variables.replaceIn(value);",
                    "  };",
                    "",
                    "  ;(async () => {",
                    "    try {",
                    "      const formattedName = await ____replaceIn(`校验`);",
                    "      pm.test(formattedName, async function(done) {",
                    "        try {",
                    "          ",
                    "          const expression = await ____replaceIn(`$.message`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          let jsonData;",
                    "          try {",
                    "            jsonData = pm.response.json();",
                    "          } catch(e) {",
                    "            let text = pm.response.text();",
                    "            const xml2js = require('xml2js');",
                    "            function removeXmlUselessPrefixAndSuffix(text) {",
                    "              const start = text.indexOf('<');",
                    "              const end = text.lastIndexOf('>');",
                    "              if (start === -1 || end === -1) {",
                    "                return text;",
                    "              }",
                    "              return text.substring(start, end + 1);",
                    "            }",
                    "            text = removeXmlUselessPrefixAndSuffix(text);",
                    "            let json;",
                    "            let xmlParseOptions = {",
                    "                explicitArray: false,",
                    "                trim: true,",
                    "                ignoreAttrs: true,",
                    "            };",
                    "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                    "                jsonData = result;",
                    "            });",
                    "          }",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "",
                    "          ",
                    "          ",
                    "    const compareValue = await ____replaceIn(`添加成功`);",
                    "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                    "  ",
                    "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                    "          done();",
                    "        } catch (err) {",
                    "          done(err);",
                    "        }",
                    "      });",
                    "    } catch(e) {",
                    "      setImmediate(() => { throw e });",
                    "    }",
                    "  })();",
                    "      "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.1.extractor",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "      async function ____replaceIn(value) {",
                    "        if (typeof pm.variables.replaceInAsync === 'function') {",
                    "          return await pm.variables.replaceInAsync(value);",
                    "        }",
                    "        return pm.variables.replaceIn(value);",
                    "      };",
                    "      ;(async () => {",
                    "        try{",
                    "          ",
                    "          const expression = await ____replaceIn(`$.data.id`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          const jsonData = pm.response.json();",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "          ",
                    "          ",
                    "        switch (typeof value) {",
                    "          case 'object':",
                    "            value = JSON.stringify(value);",
                    "            break;",
                    "          default:",
                    "            value = String(value);",
                    "            break;",
                    "        }",
                    "      ",
                    "          const formattedName = await ____replaceIn(`成分`);pm.variables.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Local variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                    "        } catch(e) {",
                    "          e.message = `error occurred in extracting variable 成分, error message: ` + e.message;",
                    "          setImmediate(() => { throw e });",
                    "        }",
                    "      })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "017a8689-2ee2-42f9-8d2d-91aab09ee9c5",
              "id": "017a8689-2ee2-42f9-8d2d-91aab09ee9c5",
              "type": "http",
              "name": "食物成分添加",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 1,
              "tags": [],
              "httpApiId": 252596216,
              "httpApiCaseId": 238233110,
              "httpApiName": "食物成分添加",
              "httpApiPath": "/p/food/add",
              "httpApiMethod": "post",
              "httpApiCaseName": "食物成分添加",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          },
          {
            "id": "c6546536-f66f-4a2d-afbb-ac2925c076d9",
            "name": "获取食材id",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "p",
                  "food",
                  "readById"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "body": {
                "mode": "formdata",
                "formdata": [
                  {
                    "disabled": false,
                    "key": "id",
                    "value": "{{成分}}",
                    "type": "string"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "prerequest",
                "script": {
                  "id": "commonScript.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "  ____string2Array = function(value) {",
                    "    if(typeof value === 'object'){",
                    "      return value;",
                    "    }",
                    "    try {",
                    "      return JSON.parse(value);",
                    "    } catch (e) {",
                    "      return value;",
                    "    }",
                    "  }",
                    "  ____string2Number = function(value, errorMsg) {",
                    "   if(typeof value !== 'string'){",
                    "     return value;",
                    "   }",
                    "   if (/^\\-?\\d+$/.test(value)) {",
                    "       return parseInt(value);",
                    "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                    "       return parseFloat(value);",
                    "   } else {",
                    "       throw new Error(errorMsg || 'Data type mismatch')",
                    "   }",
                    " }",
                    "",
                    "  ____formatValues = function(value, stringCompareValue, comparison) {",
                    "   try{",
                    "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                    "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                    "     let compareValue;",
                    "     switch (typeof value) {",
                    "         case 'string':",
                    "             if (isNumberComparisons) {",
                    "                value = ____string2Number(value);",
                    "                compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "                compareValue = ____string2Array(stringCompareValue);",
                    "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                    "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                    "             } else {",
                    "                compareValue = stringCompareValue;",
                    "             }",
                    "             break;",
                    "         case 'object':",
                    "             const isArray = value instanceof Array;",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                    "             } else if (isCollectionComparisons && isArray) {",
                    "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                    "            } else if (",
                    "              isArray &&",
                    "              comparison === 'include' &&",
                    "              value.includes(stringCompareValue)",
                    "            ) {",
                    "              compareValue = stringCompareValue;",
                    "            } else {",
                    "              try {",
                    "                  compareValue = JSON.parse(stringCompareValue);",
                    "              } catch (e) {",
                    "                  compareValue = stringCompareValue;",
                    "              }",
                    "            }",
                    "             break;",
                    "         case 'boolean':",
                    "             if (isNumberComparisons || isCollectionComparisons) {",
                    "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                    "             break;",
                    "           case 'bigint':",
                    "           case 'number':",
                    "             if (isNumberComparisons) {",
                    "               compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "              value = '' + value;",
                    "            } else {",
                    "               compareValue = stringCompareValue;",
                    "               value = '' + value;",
                    "             }",
                    "             break;",
                    "         case 'null':",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                    "             break;",
                    "         default:",
                    "            if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "            } else {",
                    "              compareValue = stringCompareValue;",
                    "            }",
                    "            break;",
                    "     }",
                    "     return { compareValue, value };",
                    "   } catch(e) {",
                    "     console.log(e);",
                    "     throw e;",
                    "   }",
                    " }",
                    " "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "  async function ____replaceIn(value) {",
                    "    if (typeof pm.variables.replaceInAsync === 'function') {",
                    "      return await pm.variables.replaceInAsync(value);",
                    "    }",
                    "    return pm.variables.replaceIn(value);",
                    "  };",
                    "",
                    "  ;(async () => {",
                    "    try {",
                    "      const formattedName = await ____replaceIn(`校验食物是否存在`);",
                    "      pm.test(formattedName, async function(done) {",
                    "        try {",
                    "          ",
                    "          const expression = await ____replaceIn(`$.data`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          let jsonData;",
                    "          try {",
                    "            jsonData = pm.response.json();",
                    "          } catch(e) {",
                    "            let text = pm.response.text();",
                    "            const xml2js = require('xml2js');",
                    "            function removeXmlUselessPrefixAndSuffix(text) {",
                    "              const start = text.indexOf('<');",
                    "              const end = text.lastIndexOf('>');",
                    "              if (start === -1 || end === -1) {",
                    "                return text;",
                    "              }",
                    "              return text.substring(start, end + 1);",
                    "            }",
                    "            text = removeXmlUselessPrefixAndSuffix(text);",
                    "            let json;",
                    "            let xmlParseOptions = {",
                    "                explicitArray: false,",
                    "                trim: true,",
                    "                ignoreAttrs: true,",
                    "            };",
                    "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                    "                jsonData = result;",
                    "            });",
                    "          }",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "",
                    "          ",
                    "          ",
                    "    const compareValue = await ____replaceIn(`null`);",
                    "    const formattedValues = ____formatValues(value, compareValue, 'notEqual');",
                    "  ",
                    "          pm.expect(formattedValues.value).to.not.eql(formattedValues.compareValue);",
                    "          done();",
                    "        } catch (err) {",
                    "          done(err);",
                    "        }",
                    "      });",
                    "    } catch(e) {",
                    "      setImmediate(() => { throw e });",
                    "    }",
                    "  })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "e87829f9-8f66-4b17-82ba-6e30aa24012f",
              "id": "e87829f9-8f66-4b17-82ba-6e30aa24012f",
              "type": "http",
              "name": "获取食材id",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 4,
              "tags": [],
              "httpApiId": 266969710,
              "httpApiCaseId": 238333178,
              "httpApiName": "获取食材id",
              "httpApiPath": "https://zhct.yyangpt.cn/p/food/readById",
              "httpApiMethod": "post",
              "httpApiCaseName": "获取食材id",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          },
          {
            "id": "c0955601-383f-4c03-89dd-356d9a25a95e",
            "name": "添加菜品",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "p",
                  "cater",
                  "add"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "baseUrl": "https://zhct.yyangpt.cn",
              "body": {
                "mode": "urlencoded",
                "urlencoded": [
                  {
                    "disabled": false,
                    "key": "name",
                    "value": "小炒辣椒"
                  },
                  {
                    "disabled": false,
                    "key": "category",
                    "value": "1"
                  },
                  {
                    "disabled": false,
                    "key": "sub_category",
                    "value": "1"
                  },
                  {
                    "disabled": false,
                    "key": "unit_number",
                    "value": "1"
                  },
                  {
                    "disabled": false,
                    "key": "unit",
                    "value": "2"
                  },
                  {
                    "disabled": false,
                    "key": "weight",
                    "value": "100"
                  },
                  {
                    "disabled": false,
                    "key": "raw_flag",
                    "value": "2"
                  },
                  {
                    "disabled": false,
                    "key": "raw_flag_weight",
                    "value": "80"
                  },
                  {
                    "disabled": false,
                    "key": "file_path",
                    "value": ""
                  },
                  {
                    "disabled": false,
                    "key": "taste",
                    "value": "1"
                  },
                  {
                    "disabled": false,
                    "key": "data",
                    "value": "{\"0\":{\"id\":1087,\"name\":\"花生油\",\"edible_part\":100,\"energy\":\"899.00\",\"carbohydrate\":\"0.00\",\"protein\":\"0.00\",\"fat\":\"99.90\",\"dietary_fiber\":\"0.00\",\"cooking_food\":4,\"category\":14,\"minute_sort\":69,\"sub_name\":\"\",\"create_by\":\"api\",\"create_time\":\"2020-05-24 02:34:20\",\"ratio\":\"100.00%\",\"\":\"\",\"weight\":\"1\",\"100.00%\":\"100.00%\",\"composition_id\":1087,\"uuid\":1087,\"food_weight\":\"1\",\"composition_name\":\"花生油\",\"composition_ratio\":\"100.00%\"}}"
                  },
                  {
                    "disabled": false,
                    "key": "cook_method",
                    "value": "1"
                  },
                  {
                    "disabled": false,
                    "key": "price",
                    "value": "0"
                  },
                  {
                    "disabled": false,
                    "key": "origin",
                    "value": "test"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "prerequest",
                "script": {
                  "id": "commonScript.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "  ____string2Array = function(value) {",
                    "    if(typeof value === 'object'){",
                    "      return value;",
                    "    }",
                    "    try {",
                    "      return JSON.parse(value);",
                    "    } catch (e) {",
                    "      return value;",
                    "    }",
                    "  }",
                    "  ____string2Number = function(value, errorMsg) {",
                    "   if(typeof value !== 'string'){",
                    "     return value;",
                    "   }",
                    "   if (/^\\-?\\d+$/.test(value)) {",
                    "       return parseInt(value);",
                    "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                    "       return parseFloat(value);",
                    "   } else {",
                    "       throw new Error(errorMsg || 'Data type mismatch')",
                    "   }",
                    " }",
                    "",
                    "  ____formatValues = function(value, stringCompareValue, comparison) {",
                    "   try{",
                    "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                    "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                    "     let compareValue;",
                    "     switch (typeof value) {",
                    "         case 'string':",
                    "             if (isNumberComparisons) {",
                    "                value = ____string2Number(value);",
                    "                compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "                compareValue = ____string2Array(stringCompareValue);",
                    "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                    "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                    "             } else {",
                    "                compareValue = stringCompareValue;",
                    "             }",
                    "             break;",
                    "         case 'object':",
                    "             const isArray = value instanceof Array;",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                    "             } else if (isCollectionComparisons && isArray) {",
                    "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                    "            } else if (",
                    "              isArray &&",
                    "              comparison === 'include' &&",
                    "              value.includes(stringCompareValue)",
                    "            ) {",
                    "              compareValue = stringCompareValue;",
                    "            } else {",
                    "              try {",
                    "                  compareValue = JSON.parse(stringCompareValue);",
                    "              } catch (e) {",
                    "                  compareValue = stringCompareValue;",
                    "              }",
                    "            }",
                    "             break;",
                    "         case 'boolean':",
                    "             if (isNumberComparisons || isCollectionComparisons) {",
                    "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                    "             break;",
                    "           case 'bigint':",
                    "           case 'number':",
                    "             if (isNumberComparisons) {",
                    "               compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "              value = '' + value;",
                    "            } else {",
                    "               compareValue = stringCompareValue;",
                    "               value = '' + value;",
                    "             }",
                    "             break;",
                    "         case 'null':",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                    "             break;",
                    "         default:",
                    "            if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "            } else {",
                    "              compareValue = stringCompareValue;",
                    "            }",
                    "            break;",
                    "     }",
                    "     return { compareValue, value };",
                    "   } catch(e) {",
                    "     console.log(e);",
                    "     throw e;",
                    "   }",
                    " }",
                    " "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "  async function ____replaceIn(value) {",
                    "    if (typeof pm.variables.replaceInAsync === 'function') {",
                    "      return await pm.variables.replaceInAsync(value);",
                    "    }",
                    "    return pm.variables.replaceIn(value);",
                    "  };",
                    "",
                    "  ;(async () => {",
                    "    try {",
                    "      const formattedName = await ____replaceIn(`$.message Equals 菜品添加成功`);",
                    "      pm.test(formattedName, async function(done) {",
                    "        try {",
                    "          ",
                    "          const expression = await ____replaceIn(`$.message`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          let jsonData;",
                    "          try {",
                    "            jsonData = pm.response.json();",
                    "          } catch(e) {",
                    "            let text = pm.response.text();",
                    "            const xml2js = require('xml2js');",
                    "            function removeXmlUselessPrefixAndSuffix(text) {",
                    "              const start = text.indexOf('<');",
                    "              const end = text.lastIndexOf('>');",
                    "              if (start === -1 || end === -1) {",
                    "                return text;",
                    "              }",
                    "              return text.substring(start, end + 1);",
                    "            }",
                    "            text = removeXmlUselessPrefixAndSuffix(text);",
                    "            let json;",
                    "            let xmlParseOptions = {",
                    "                explicitArray: false,",
                    "                trim: true,",
                    "                ignoreAttrs: true,",
                    "            };",
                    "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                    "                jsonData = result;",
                    "            });",
                    "          }",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "",
                    "          ",
                    "          ",
                    "    const compareValue = await ____replaceIn(`菜品添加成功`);",
                    "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                    "  ",
                    "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                    "          done();",
                    "        } catch (err) {",
                    "          done(err);",
                    "        }",
                    "      });",
                    "    } catch(e) {",
                    "      setImmediate(() => { throw e });",
                    "    }",
                    "  })();",
                    "      "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.1.extractor",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "      async function ____replaceIn(value) {",
                    "        if (typeof pm.variables.replaceInAsync === 'function') {",
                    "          return await pm.variables.replaceInAsync(value);",
                    "        }",
                    "        return pm.variables.replaceIn(value);",
                    "      };",
                    "      ;(async () => {",
                    "        try{",
                    "          ",
                    "          const expression = await ____replaceIn(`$.data.uuid`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          const jsonData = pm.response.json();",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "          ",
                    "          ",
                    "        switch (typeof value) {",
                    "          case 'object':",
                    "            value = JSON.stringify(value);",
                    "            break;",
                    "          default:",
                    "            value = String(value);",
                    "            break;",
                    "        }",
                    "      ",
                    "          const formattedName = await ____replaceIn(`提取菜品uuid`);pm.globals.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Global variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                    "        } catch(e) {",
                    "          e.message = `error occurred in extracting variable 提取菜品uuid, error message: ` + e.message;",
                    "          setImmediate(() => { throw e });",
                    "        }",
                    "      })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "186e1435-cf2b-4661-918b-0dc2e71dea1e",
              "id": "186e1435-cf2b-4661-918b-0dc2e71dea1e",
              "type": "http",
              "name": "添加菜品",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 2,
              "tags": [],
              "httpApiId": 252596389,
              "httpApiCaseId": 238237612,
              "httpApiName": "添加菜品",
              "httpApiPath": "/p/cater/add",
              "httpApiMethod": "post",
              "httpApiCaseName": "添加菜品",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          },
          {
            "id": "8a6cc23b-63a7-49a1-a45f-2f8a250b21a8",
            "name": "菜品查看",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "p",
                  "cater",
                  "find"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "body": {
                "mode": "formdata",
                "formdata": [
                  {
                    "disabled": false,
                    "key": "uuid",
                    "value": "{{提取菜品uuid}}",
                    "type": "string"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.extractor",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "      async function ____replaceIn(value) {",
                    "        if (typeof pm.variables.replaceInAsync === 'function') {",
                    "          return await pm.variables.replaceInAsync(value);",
                    "        }",
                    "        return pm.variables.replaceIn(value);",
                    "      };",
                    "      ;(async () => {",
                    "        try{",
                    "          ",
                    "          const expression = await ____replaceIn(`$.data.name`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          const jsonData = pm.response.json();",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "          ",
                    "          ",
                    "        switch (typeof value) {",
                    "          case 'object':",
                    "            value = JSON.stringify(value);",
                    "            break;",
                    "          default:",
                    "            value = String(value);",
                    "            break;",
                    "        }",
                    "      ",
                    "          const formattedName = await ____replaceIn(`提取菜品名称`);pm.globals.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Global variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                    "        } catch(e) {",
                    "          e.message = `error occurred in extracting variable 提取菜品名称, error message: ` + e.message;",
                    "          setImmediate(() => { throw e });",
                    "        }",
                    "      })();",
                    "      "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.1.extractor",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "      async function ____replaceIn(value) {",
                    "        if (typeof pm.variables.replaceInAsync === 'function') {",
                    "          return await pm.variables.replaceInAsync(value);",
                    "        }",
                    "        return pm.variables.replaceIn(value);",
                    "      };",
                    "      ;(async () => {",
                    "        try{",
                    "          ",
                    "          const expression = await ____replaceIn(`$.data.uuid`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          const jsonData = pm.response.json();",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "          ",
                    "          ",
                    "        switch (typeof value) {",
                    "          case 'object':",
                    "            value = JSON.stringify(value);",
                    "            break;",
                    "          default:",
                    "            value = String(value);",
                    "            break;",
                    "        }",
                    "      ",
                    "          const formattedName = await ____replaceIn(`删除`);pm.variables.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Local variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                    "        } catch(e) {",
                    "          e.message = `error occurred in extracting variable 删除, error message: ` + e.message;",
                    "          setImmediate(() => { throw e });",
                    "        }",
                    "      })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "f34013fd-6d93-4b25-86b8-b0c6cf0d1760",
              "id": "f34013fd-6d93-4b25-86b8-b0c6cf0d1760",
              "type": "http",
              "name": "菜品查看",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 5,
              "tags": [],
              "httpApiId": 267032135,
              "httpApiCaseId": 238369938,
              "httpApiName": "菜品查看",
              "httpApiPath": "https://zhct.yyangpt.cn/p/cater/find",
              "httpApiMethod": "post",
              "httpApiCaseName": "菜品查看",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          },
          {
            "id": "a9e96007-ad61-458c-abb3-8cdc3ac51b93",
            "name": "保存菜谱",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "p",
                  "bill",
                  "add"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "baseUrl": "https://zhct.yyangpt.cn",
              "body": {
                "mode": "formdata",
                "formdata": [
                  {
                    "disabled": false,
                    "key": "menu_date",
                    "value": "2025-03-04",
                    "type": "string"
                  },
                  {
                    "disabled": false,
                    "key": "restaurant_id",
                    "value": "1",
                    "type": "string"
                  },
                  {
                    "disabled": false,
                    "key": "data",
                    "value": "[{\"uuid\":\"{{提取菜品uuid}}\",\"name\":\"{{提取菜品名称}}\",\"img\":\"\",\"category\":1,\"select\":true,\"type\":1,\"meal_times\":1}]",
                    "type": "string"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "prerequest",
                "script": {
                  "id": "commonScript.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "  ____string2Array = function(value) {",
                    "    if(typeof value === 'object'){",
                    "      return value;",
                    "    }",
                    "    try {",
                    "      return JSON.parse(value);",
                    "    } catch (e) {",
                    "      return value;",
                    "    }",
                    "  }",
                    "  ____string2Number = function(value, errorMsg) {",
                    "   if(typeof value !== 'string'){",
                    "     return value;",
                    "   }",
                    "   if (/^\\-?\\d+$/.test(value)) {",
                    "       return parseInt(value);",
                    "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                    "       return parseFloat(value);",
                    "   } else {",
                    "       throw new Error(errorMsg || 'Data type mismatch')",
                    "   }",
                    " }",
                    "",
                    "  ____formatValues = function(value, stringCompareValue, comparison) {",
                    "   try{",
                    "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                    "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                    "     let compareValue;",
                    "     switch (typeof value) {",
                    "         case 'string':",
                    "             if (isNumberComparisons) {",
                    "                value = ____string2Number(value);",
                    "                compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "                compareValue = ____string2Array(stringCompareValue);",
                    "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                    "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                    "             } else {",
                    "                compareValue = stringCompareValue;",
                    "             }",
                    "             break;",
                    "         case 'object':",
                    "             const isArray = value instanceof Array;",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                    "             } else if (isCollectionComparisons && isArray) {",
                    "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                    "            } else if (",
                    "              isArray &&",
                    "              comparison === 'include' &&",
                    "              value.includes(stringCompareValue)",
                    "            ) {",
                    "              compareValue = stringCompareValue;",
                    "            } else {",
                    "              try {",
                    "                  compareValue = JSON.parse(stringCompareValue);",
                    "              } catch (e) {",
                    "                  compareValue = stringCompareValue;",
                    "              }",
                    "            }",
                    "             break;",
                    "         case 'boolean':",
                    "             if (isNumberComparisons || isCollectionComparisons) {",
                    "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                    "             break;",
                    "           case 'bigint':",
                    "           case 'number':",
                    "             if (isNumberComparisons) {",
                    "               compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "              value = '' + value;",
                    "            } else {",
                    "               compareValue = stringCompareValue;",
                    "               value = '' + value;",
                    "             }",
                    "             break;",
                    "         case 'null':",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                    "             break;",
                    "         default:",
                    "            if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "            } else {",
                    "              compareValue = stringCompareValue;",
                    "            }",
                    "            break;",
                    "     }",
                    "     return { compareValue, value };",
                    "   } catch(e) {",
                    "     console.log(e);",
                    "     throw e;",
                    "   }",
                    " }",
                    " "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "  async function ____replaceIn(value) {",
                    "    if (typeof pm.variables.replaceInAsync === 'function') {",
                    "      return await pm.variables.replaceInAsync(value);",
                    "    }",
                    "    return pm.variables.replaceIn(value);",
                    "  };",
                    "",
                    "  ;(async () => {",
                    "    try {",
                    "      const formattedName = await ____replaceIn(`$.message Equals 添加成功`);",
                    "      pm.test(formattedName, async function(done) {",
                    "        try {",
                    "          ",
                    "          const expression = await ____replaceIn(`$.message`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          let jsonData;",
                    "          try {",
                    "            jsonData = pm.response.json();",
                    "          } catch(e) {",
                    "            let text = pm.response.text();",
                    "            const xml2js = require('xml2js');",
                    "            function removeXmlUselessPrefixAndSuffix(text) {",
                    "              const start = text.indexOf('<');",
                    "              const end = text.lastIndexOf('>');",
                    "              if (start === -1 || end === -1) {",
                    "                return text;",
                    "              }",
                    "              return text.substring(start, end + 1);",
                    "            }",
                    "            text = removeXmlUselessPrefixAndSuffix(text);",
                    "            let json;",
                    "            let xmlParseOptions = {",
                    "                explicitArray: false,",
                    "                trim: true,",
                    "                ignoreAttrs: true,",
                    "            };",
                    "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                    "                jsonData = result;",
                    "            });",
                    "          }",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "",
                    "          ",
                    "          ",
                    "    const compareValue = await ____replaceIn(`添加成功`);",
                    "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                    "  ",
                    "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                    "          done();",
                    "        } catch (err) {",
                    "          done(err);",
                    "        }",
                    "      });",
                    "    } catch(e) {",
                    "      setImmediate(() => { throw e });",
                    "    }",
                    "  })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "997f3705-683e-4e9f-b653-3899fbb2d721",
              "id": "997f3705-683e-4e9f-b653-3899fbb2d721",
              "type": "http",
              "name": "保存菜谱",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 3,
              "tags": [],
              "httpApiId": 252596293,
              "httpApiCaseId": 238330791,
              "httpApiName": "保存菜谱",
              "httpApiPath": "/p/bill/add",
              "httpApiMethod": "post",
              "httpApiCaseName": "保存菜谱",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          },
          {
            "id": "519ee6e2-6761-434b-ae4e-1d97463bafcf",
            "name": "菜品删除接口",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "",
                  "p",
                  "cater",
                  "del"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "body": {
                "mode": "formdata",
                "formdata": [
                  {
                    "disabled": false,
                    "key": "uuid",
                    "value": "{{删除}}",
                    "type": "string"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "prerequest",
                "script": {
                  "id": "commonScript.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "  ____string2Array = function(value) {",
                    "    if(typeof value === 'object'){",
                    "      return value;",
                    "    }",
                    "    try {",
                    "      return JSON.parse(value);",
                    "    } catch (e) {",
                    "      return value;",
                    "    }",
                    "  }",
                    "  ____string2Number = function(value, errorMsg) {",
                    "   if(typeof value !== 'string'){",
                    "     return value;",
                    "   }",
                    "   if (/^\\-?\\d+$/.test(value)) {",
                    "       return parseInt(value);",
                    "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                    "       return parseFloat(value);",
                    "   } else {",
                    "       throw new Error(errorMsg || 'Data type mismatch')",
                    "   }",
                    " }",
                    "",
                    "  ____formatValues = function(value, stringCompareValue, comparison) {",
                    "   try{",
                    "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                    "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                    "     let compareValue;",
                    "     switch (typeof value) {",
                    "         case 'string':",
                    "             if (isNumberComparisons) {",
                    "                value = ____string2Number(value);",
                    "                compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "                compareValue = ____string2Array(stringCompareValue);",
                    "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                    "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                    "             } else {",
                    "                compareValue = stringCompareValue;",
                    "             }",
                    "             break;",
                    "         case 'object':",
                    "             const isArray = value instanceof Array;",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                    "             } else if (isCollectionComparisons && isArray) {",
                    "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                    "            } else if (",
                    "              isArray &&",
                    "              comparison === 'include' &&",
                    "              value.includes(stringCompareValue)",
                    "            ) {",
                    "              compareValue = stringCompareValue;",
                    "            } else {",
                    "              try {",
                    "                  compareValue = JSON.parse(stringCompareValue);",
                    "              } catch (e) {",
                    "                  compareValue = stringCompareValue;",
                    "              }",
                    "            }",
                    "             break;",
                    "         case 'boolean':",
                    "             if (isNumberComparisons || isCollectionComparisons) {",
                    "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                    "             break;",
                    "           case 'bigint':",
                    "           case 'number':",
                    "             if (isNumberComparisons) {",
                    "               compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "              value = '' + value;",
                    "            } else {",
                    "               compareValue = stringCompareValue;",
                    "               value = '' + value;",
                    "             }",
                    "             break;",
                    "         case 'null':",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                    "             break;",
                    "         default:",
                    "            if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "            } else {",
                    "              compareValue = stringCompareValue;",
                    "            }",
                    "            break;",
                    "     }",
                    "     return { compareValue, value };",
                    "   } catch(e) {",
                    "     console.log(e);",
                    "     throw e;",
                    "   }",
                    " }",
                    " "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "  async function ____replaceIn(value) {",
                    "    if (typeof pm.variables.replaceInAsync === 'function') {",
                    "      return await pm.variables.replaceInAsync(value);",
                    "    }",
                    "    return pm.variables.replaceIn(value);",
                    "  };",
                    "",
                    "  ;(async () => {",
                    "    try {",
                    "      const formattedName = await ____replaceIn(`$.message Equals 菜品删除成功`);",
                    "      pm.test(formattedName, async function(done) {",
                    "        try {",
                    "          ",
                    "          const expression = await ____replaceIn(`$.message`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          let jsonData;",
                    "          try {",
                    "            jsonData = pm.response.json();",
                    "          } catch(e) {",
                    "            let text = pm.response.text();",
                    "            const xml2js = require('xml2js');",
                    "            function removeXmlUselessPrefixAndSuffix(text) {",
                    "              const start = text.indexOf('<');",
                    "              const end = text.lastIndexOf('>');",
                    "              if (start === -1 || end === -1) {",
                    "                return text;",
                    "              }",
                    "              return text.substring(start, end + 1);",
                    "            }",
                    "            text = removeXmlUselessPrefixAndSuffix(text);",
                    "            let json;",
                    "            let xmlParseOptions = {",
                    "                explicitArray: false,",
                    "                trim: true,",
                    "                ignoreAttrs: true,",
                    "            };",
                    "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                    "                jsonData = result;",
                    "            });",
                    "          }",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "",
                    "          ",
                    "          ",
                    "    const compareValue = await ____replaceIn(`菜品删除成功`);",
                    "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                    "  ",
                    "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                    "          done();",
                    "        } catch (err) {",
                    "          done(err);",
                    "        }",
                    "      });",
                    "    } catch(e) {",
                    "      setImmediate(() => { throw e });",
                    "    }",
                    "  })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "7c6b354f-6e80-4226-865b-0bddfa25baa6",
              "id": "7c6b354f-6e80-4226-865b-0bddfa25baa6",
              "type": "http",
              "name": "菜品删除接口",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 6,
              "tags": [],
              "httpApiId": 266863332,
              "httpApiCaseId": 238459236,
              "httpApiName": "菜品删除接口",
              "httpApiPath": "https://zhct.yyangpt.cn//p/cater/del",
              "httpApiMethod": "post",
              "httpApiCaseName": "菜品删除接口",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          },
          {
            "id": "bba61716-4bd7-4942-b33a-5b572039f71c",
            "name": "食物成分删除接口",
            "request": {
              "url": {
                "protocol": "https",
                "path": [
                  "p",
                  "food",
                  "delete"
                ],
                "host": [
                  "zhct",
                  "yyangpt",
                  "cn"
                ],
                "query": [],
                "variable": []
              },
              "header": [
                {
                  "key": "Cookie",
                  "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                },
                {
                  "key": "Access-Token",
                  "value": "{{terminal_token}}"
                },
                {
                  "key": "User-Agent",
                  "value": "app/1.0.0"
                }
              ],
              "method": "POST",
              "body": {
                "mode": "formdata",
                "formdata": [
                  {
                    "disabled": false,
                    "key": "id",
                    "value": "{{成分}}",
                    "type": "string"
                  }
                ]
              },
              "auth": {
                "type": "noauth",
                "noauth": []
              },
              "type": "http"
            },
            "response": [],
            "event": [
              {
                "listen": "prerequest",
                "script": {
                  "id": "commonScript.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "  ____string2Array = function(value) {",
                    "    if(typeof value === 'object'){",
                    "      return value;",
                    "    }",
                    "    try {",
                    "      return JSON.parse(value);",
                    "    } catch (e) {",
                    "      return value;",
                    "    }",
                    "  }",
                    "  ____string2Number = function(value, errorMsg) {",
                    "   if(typeof value !== 'string'){",
                    "     return value;",
                    "   }",
                    "   if (/^\\-?\\d+$/.test(value)) {",
                    "       return parseInt(value);",
                    "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                    "       return parseFloat(value);",
                    "   } else {",
                    "       throw new Error(errorMsg || 'Data type mismatch')",
                    "   }",
                    " }",
                    "",
                    "  ____formatValues = function(value, stringCompareValue, comparison) {",
                    "   try{",
                    "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                    "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                    "     let compareValue;",
                    "     switch (typeof value) {",
                    "         case 'string':",
                    "             if (isNumberComparisons) {",
                    "                value = ____string2Number(value);",
                    "                compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "                compareValue = ____string2Array(stringCompareValue);",
                    "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                    "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                    "             } else {",
                    "                compareValue = stringCompareValue;",
                    "             }",
                    "             break;",
                    "         case 'object':",
                    "             const isArray = value instanceof Array;",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                    "             } else if (isCollectionComparisons && isArray) {",
                    "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                    "            } else if (",
                    "              isArray &&",
                    "              comparison === 'include' &&",
                    "              value.includes(stringCompareValue)",
                    "            ) {",
                    "              compareValue = stringCompareValue;",
                    "            } else {",
                    "              try {",
                    "                  compareValue = JSON.parse(stringCompareValue);",
                    "              } catch (e) {",
                    "                  compareValue = stringCompareValue;",
                    "              }",
                    "            }",
                    "             break;",
                    "         case 'boolean':",
                    "             if (isNumberComparisons || isCollectionComparisons) {",
                    "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                    "             break;",
                    "           case 'bigint':",
                    "           case 'number':",
                    "             if (isNumberComparisons) {",
                    "               compareValue = ____string2Number(stringCompareValue);",
                    "             } else if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "              value = '' + value;",
                    "            } else {",
                    "               compareValue = stringCompareValue;",
                    "               value = '' + value;",
                    "             }",
                    "             break;",
                    "         case 'null':",
                    "             if (isNumberComparisons) {",
                    "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                    "             }",
                    "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                    "             break;",
                    "         default:",
                    "            if (isCollectionComparisons) {",
                    "              compareValue = ____string2Array(stringCompareValue);",
                    "            } else {",
                    "              compareValue = stringCompareValue;",
                    "            }",
                    "            break;",
                    "     }",
                    "     return { compareValue, value };",
                    "   } catch(e) {",
                    "     console.log(e);",
                    "     throw e;",
                    "   }",
                    " }",
                    " "
                  ]
                }
              },
              {
                "listen": "test",
                "script": {
                  "id": "postProcessors.0.assertion",
                  "type": "text/javascript",
                  "exec": [
                    "",
                    "        if (JSON.setEnableBigInt) {",
                    "          JSON.setEnableBigInt(undefined);",
                    "        }",
                    "        ",
                    "  async function ____replaceIn(value) {",
                    "    if (typeof pm.variables.replaceInAsync === 'function') {",
                    "      return await pm.variables.replaceInAsync(value);",
                    "    }",
                    "    return pm.variables.replaceIn(value);",
                    "  };",
                    "",
                    "  ;(async () => {",
                    "    try {",
                    "      const formattedName = await ____replaceIn(`$.message Equals 删除成功`);",
                    "      pm.test(formattedName, async function(done) {",
                    "        try {",
                    "          ",
                    "          const expression = await ____replaceIn(`$.message`);",
                    "          const JSONPath = require('jsonpath-plus').JSONPath;",
                    "          let jsonData;",
                    "          try {",
                    "            jsonData = pm.response.json();",
                    "          } catch(e) {",
                    "            let text = pm.response.text();",
                    "            const xml2js = require('xml2js');",
                    "            function removeXmlUselessPrefixAndSuffix(text) {",
                    "              const start = text.indexOf('<');",
                    "              const end = text.lastIndexOf('>');",
                    "              if (start === -1 || end === -1) {",
                    "                return text;",
                    "              }",
                    "              return text.substring(start, end + 1);",
                    "            }",
                    "            text = removeXmlUselessPrefixAndSuffix(text);",
                    "            let json;",
                    "            let xmlParseOptions = {",
                    "                explicitArray: false,",
                    "                trim: true,",
                    "                ignoreAttrs: true,",
                    "            };",
                    "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                    "                jsonData = result;",
                    "            });",
                    "          }",
                    "          let value = JSONPath({",
                    "            json: jsonData,",
                    "            path: expression,",
                    "            wrap: false",
                    "          });",
                    "",
                    "          if (false && undefined !== undefined) {",
                    "            if (Array.isArray(value)) {",
                    "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                    "            } else {",
                    "              value = undefined;",
                    "            }",
                    "          }",
                    "",
                    "          ",
                    "          ",
                    "    const compareValue = await ____replaceIn(`删除成功`);",
                    "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                    "  ",
                    "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                    "          done();",
                    "        } catch (err) {",
                    "          done(err);",
                    "        }",
                    "      });",
                    "    } catch(e) {",
                    "      setImmediate(() => { throw e });",
                    "    }",
                    "  })();",
                    "      "
                  ]
                }
              }
            ],
            "type": "http",
            "metaInfo": {
              "blockId": "d43cdcde-bc2d-4063-9b8f-ebea20f02b0c",
              "id": "d43cdcde-bc2d-4063-9b8f-ebea20f02b0c",
              "type": "http",
              "name": "食物成分删除接口",
              "projectId": 5737553,
              "relatedId": 6093815,
              "environmentId": 28851641,
              "blockNumber": 7,
              "tags": [],
              "httpApiId": 267179881,
              "httpApiCaseId": 238691626,
              "httpApiName": "食物成分删除接口",
              "httpApiPath": "https://zhct.yyangpt.cn/p/food/delete",
              "httpApiMethod": "post",
              "httpApiCaseName": "食物成分删除接口",
              "moduleId": 4788005,
              "serverId": "default"
            },
            "protocolProfileBehavior": {
              "useWhatWGUrlParser": false,
              "disableUrlEncoding": false,
              "disabledSystemHeaders": {},
              "disableCookies": false
            },
            "responseDefinition": {
              "validateDeletedResponse": false
            },
            "requestDefinition": {
              "jsonSchema": {},
              "examples": []
            },
            "overrideRequesterOptions": {
              "strictSSL": false
            }
          }
        ],
        "name": "运营人员流程"
      }
    ],
    "info": {
      "name": "运营人员流程",
      "folderName": "智慧健康餐厅主流程"
    },
    "dataSchemas": {},
    "mockRules": {
      "rules": [],
      "enableSystemRule": true
    },
    "environment": {
      "id": 28851641,
      "name": "商户端产业园演示环境",
      "type": "normal",
      "baseUrls": {
        "default": "https://zhct.yyangpt.cn"
      },
      "websocketBaseUrls": {},
      "socketioBaseUrls": {},
      "baseUrl": "https://zhct.yyangpt.cn",
      "variable": {
        "id": "15fdb65f-2df4-4dfb-8e66-6e6322954243",
        "name": "商户端产业园演示环境",
        "baseUrl": "https://zhct.yyangpt.cn",
        "baseUrls": {
          "default": "https://zhct.yyangpt.cn"
        },
        "values": [
          {
            "type": "any",
            "value": "",
            "key": "dateFromTempVariable",
            "isBindInitial": false,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "bindTime",
            "isBindInitial": false,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "delayedBindTime",
            "isBindInitial": false,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "formattedDelayedTime",
            "isBindInitial": false,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "zqa",
            "isBindInitial": false,
            "initialValue": ""
          }
        ]
      },
      "parameter": {
        "header": [],
        "query": [],
        "body": [],
        "cookie": []
      },
      "advancedSettings": {
        "default": {
          "requestProxySetting": {
            "type": "default",
            "agentId": 2
          }
        }
      }
    },
    "globals": {
      "baseUrls": {},
      "websocketBaseUrls": {},
      "socketioBaseUrls": {},
      "baseUrl": "",
      "variable": {
        "id": "9bf18748-71db-4a8a-9a27-62f176c39611",
        "baseUrl": "",
        "baseUrls": {},
        "values": [
          {
            "type": "any",
            "value": "",
            "key": "uuid",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "提取菜品uuid",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "提取菜品名称",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "to",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "shijian",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "dateFromTempVariable",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "cee",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "",
            "key": "sh",
            "isBindInitial": true,
            "initialValue": ""
          },
          {
            "type": "any",
            "value": "onlineshopmall",
            "key": "account-dev",
            "isBindInitial": true,
            "initialValue": "onlineshopmall"
          },
          {
            "type": "any",
            "value": "Shop@2025#Mall&88",
            "key": "pwd-dev",
            "isBindInitial": true,
            "initialValue": "Shop@2025#Mall&88"
          },
          {
            "type": "any",
            "value": "7E3A9D2C5F8B1E4G6H0J2K9L4M1N3P5Q",
            "key": "key-dev",
            "isBindInitial": true,
            "initialValue": "7E3A9D2C5F8B1E4G6H0J2K9L4M1N3P5Q"
          }
        ]
      },
      "parameter": {
        "header": [],
        "query": [],
        "body": [],
        "cookie": []
      }
    },
    "teamGlobals": {
      "baseUrls": {},
      "websocketBaseUrls": {},
      "socketioBaseUrls": {},
      "baseUrl": "",
      "variable": {
        "id": "a29e8e06-69ec-4ab2-8557-670583cfe7ca",
        "baseUrl": "",
        "baseUrls": {},
        "values": []
      },
      "parameter": {
        "header": [],
        "query": [],
        "body": [],
        "cookie": []
      }
    },
    "moduleVariablesMap": {
      "4788005": []
    },
    "isServerBuild": true,
    "isTestFlowControl": false,
    "collectionDefinition": {
      "apifoxCli": "1.1.0",
      "item": [
        {
          "item": [
            {
              "id": "70fd79be-93b7-43cc-a8a6-f7bf12dbd58d",
              "name": "食物成分添加",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "p",
                    "food",
                    "add"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "baseUrl": "https://zhct.yyangpt.cn",
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "disabled": false,
                      "key": "name",
                      "value": "小炒辣椒"
                    },
                    {
                      "disabled": false,
                      "key": "edible_part",
                      "value": "100"
                    },
                    {
                      "disabled": false,
                      "key": "energy",
                      "value": "349"
                    },
                    {
                      "disabled": false,
                      "key": "protein",
                      "value": "11.2"
                    },
                    {
                      "disabled": false,
                      "key": "fat",
                      "value": "1.5"
                    },
                    {
                      "disabled": false,
                      "key": "carbohydrate",
                      "value": "73.6"
                    },
                    {
                      "disabled": false,
                      "key": "category",
                      "value": "1"
                    },
                    {
                      "disabled": false,
                      "key": "minute_sort",
                      "value": "2"
                    },
                    {
                      "disabled": false,
                      "key": "cooking_food",
                      "value": "3"
                    },
                    {
                      "disabled": false,
                      "key": "common_ingredients",
                      "value": "1"
                    },
                    {
                      "disabled": true,
                      "key": "origin",
                      "value": "test"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "id": "commonScript.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "  ____string2Array = function(value) {",
                      "    if(typeof value === 'object'){",
                      "      return value;",
                      "    }",
                      "    try {",
                      "      return JSON.parse(value);",
                      "    } catch (e) {",
                      "      return value;",
                      "    }",
                      "  }",
                      "  ____string2Number = function(value, errorMsg) {",
                      "   if(typeof value !== 'string'){",
                      "     return value;",
                      "   }",
                      "   if (/^\\-?\\d+$/.test(value)) {",
                      "       return parseInt(value);",
                      "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                      "       return parseFloat(value);",
                      "   } else {",
                      "       throw new Error(errorMsg || 'Data type mismatch')",
                      "   }",
                      " }",
                      "",
                      "  ____formatValues = function(value, stringCompareValue, comparison) {",
                      "   try{",
                      "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                      "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                      "     let compareValue;",
                      "     switch (typeof value) {",
                      "         case 'string':",
                      "             if (isNumberComparisons) {",
                      "                value = ____string2Number(value);",
                      "                compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "                compareValue = ____string2Array(stringCompareValue);",
                      "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                      "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                      "             } else {",
                      "                compareValue = stringCompareValue;",
                      "             }",
                      "             break;",
                      "         case 'object':",
                      "             const isArray = value instanceof Array;",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                      "             } else if (isCollectionComparisons && isArray) {",
                      "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                      "            } else if (",
                      "              isArray &&",
                      "              comparison === 'include' &&",
                      "              value.includes(stringCompareValue)",
                      "            ) {",
                      "              compareValue = stringCompareValue;",
                      "            } else {",
                      "              try {",
                      "                  compareValue = JSON.parse(stringCompareValue);",
                      "              } catch (e) {",
                      "                  compareValue = stringCompareValue;",
                      "              }",
                      "            }",
                      "             break;",
                      "         case 'boolean':",
                      "             if (isNumberComparisons || isCollectionComparisons) {",
                      "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                      "             break;",
                      "           case 'bigint':",
                      "           case 'number':",
                      "             if (isNumberComparisons) {",
                      "               compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "              value = '' + value;",
                      "            } else {",
                      "               compareValue = stringCompareValue;",
                      "               value = '' + value;",
                      "             }",
                      "             break;",
                      "         case 'null':",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                      "             break;",
                      "         default:",
                      "            if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "            } else {",
                      "              compareValue = stringCompareValue;",
                      "            }",
                      "            break;",
                      "     }",
                      "     return { compareValue, value };",
                      "   } catch(e) {",
                      "     console.log(e);",
                      "     throw e;",
                      "   }",
                      " }",
                      " "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "  async function ____replaceIn(value) {",
                      "    if (typeof pm.variables.replaceInAsync === 'function') {",
                      "      return await pm.variables.replaceInAsync(value);",
                      "    }",
                      "    return pm.variables.replaceIn(value);",
                      "  };",
                      "",
                      "  ;(async () => {",
                      "    try {",
                      "      const formattedName = await ____replaceIn(`校验`);",
                      "      pm.test(formattedName, async function(done) {",
                      "        try {",
                      "          ",
                      "          const expression = await ____replaceIn(`$.message`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          let jsonData;",
                      "          try {",
                      "            jsonData = pm.response.json();",
                      "          } catch(e) {",
                      "            let text = pm.response.text();",
                      "            const xml2js = require('xml2js');",
                      "            function removeXmlUselessPrefixAndSuffix(text) {",
                      "              const start = text.indexOf('<');",
                      "              const end = text.lastIndexOf('>');",
                      "              if (start === -1 || end === -1) {",
                      "                return text;",
                      "              }",
                      "              return text.substring(start, end + 1);",
                      "            }",
                      "            text = removeXmlUselessPrefixAndSuffix(text);",
                      "            let json;",
                      "            let xmlParseOptions = {",
                      "                explicitArray: false,",
                      "                trim: true,",
                      "                ignoreAttrs: true,",
                      "            };",
                      "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                      "                jsonData = result;",
                      "            });",
                      "          }",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "",
                      "          ",
                      "          ",
                      "    const compareValue = await ____replaceIn(`添加成功`);",
                      "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                      "  ",
                      "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                      "          done();",
                      "        } catch (err) {",
                      "          done(err);",
                      "        }",
                      "      });",
                      "    } catch(e) {",
                      "      setImmediate(() => { throw e });",
                      "    }",
                      "  })();",
                      "      "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.1.extractor",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "      async function ____replaceIn(value) {",
                      "        if (typeof pm.variables.replaceInAsync === 'function') {",
                      "          return await pm.variables.replaceInAsync(value);",
                      "        }",
                      "        return pm.variables.replaceIn(value);",
                      "      };",
                      "      ;(async () => {",
                      "        try{",
                      "          ",
                      "          const expression = await ____replaceIn(`$.data.id`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          const jsonData = pm.response.json();",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "          ",
                      "          ",
                      "        switch (typeof value) {",
                      "          case 'object':",
                      "            value = JSON.stringify(value);",
                      "            break;",
                      "          default:",
                      "            value = String(value);",
                      "            break;",
                      "        }",
                      "      ",
                      "          const formattedName = await ____replaceIn(`成分`);pm.variables.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Local variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                      "        } catch(e) {",
                      "          e.message = `error occurred in extracting variable 成分, error message: ` + e.message;",
                      "          setImmediate(() => { throw e });",
                      "        }",
                      "      })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "017a8689-2ee2-42f9-8d2d-91aab09ee9c5",
                "id": "017a8689-2ee2-42f9-8d2d-91aab09ee9c5",
                "type": "http",
                "name": "食物成分添加",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 1,
                "tags": [],
                "httpApiId": 252596216,
                "httpApiCaseId": 238233110,
                "httpApiName": "食物成分添加",
                "httpApiPath": "/p/food/add",
                "httpApiMethod": "post",
                "httpApiCaseName": "食物成分添加",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            },
            {
              "id": "c6546536-f66f-4a2d-afbb-ac2925c076d9",
              "name": "获取食材id",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "p",
                    "food",
                    "readById"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "disabled": false,
                      "key": "id",
                      "value": "{{成分}}",
                      "type": "string"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "id": "commonScript.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "  ____string2Array = function(value) {",
                      "    if(typeof value === 'object'){",
                      "      return value;",
                      "    }",
                      "    try {",
                      "      return JSON.parse(value);",
                      "    } catch (e) {",
                      "      return value;",
                      "    }",
                      "  }",
                      "  ____string2Number = function(value, errorMsg) {",
                      "   if(typeof value !== 'string'){",
                      "     return value;",
                      "   }",
                      "   if (/^\\-?\\d+$/.test(value)) {",
                      "       return parseInt(value);",
                      "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                      "       return parseFloat(value);",
                      "   } else {",
                      "       throw new Error(errorMsg || 'Data type mismatch')",
                      "   }",
                      " }",
                      "",
                      "  ____formatValues = function(value, stringCompareValue, comparison) {",
                      "   try{",
                      "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                      "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                      "     let compareValue;",
                      "     switch (typeof value) {",
                      "         case 'string':",
                      "             if (isNumberComparisons) {",
                      "                value = ____string2Number(value);",
                      "                compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "                compareValue = ____string2Array(stringCompareValue);",
                      "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                      "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                      "             } else {",
                      "                compareValue = stringCompareValue;",
                      "             }",
                      "             break;",
                      "         case 'object':",
                      "             const isArray = value instanceof Array;",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                      "             } else if (isCollectionComparisons && isArray) {",
                      "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                      "            } else if (",
                      "              isArray &&",
                      "              comparison === 'include' &&",
                      "              value.includes(stringCompareValue)",
                      "            ) {",
                      "              compareValue = stringCompareValue;",
                      "            } else {",
                      "              try {",
                      "                  compareValue = JSON.parse(stringCompareValue);",
                      "              } catch (e) {",
                      "                  compareValue = stringCompareValue;",
                      "              }",
                      "            }",
                      "             break;",
                      "         case 'boolean':",
                      "             if (isNumberComparisons || isCollectionComparisons) {",
                      "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                      "             break;",
                      "           case 'bigint':",
                      "           case 'number':",
                      "             if (isNumberComparisons) {",
                      "               compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "              value = '' + value;",
                      "            } else {",
                      "               compareValue = stringCompareValue;",
                      "               value = '' + value;",
                      "             }",
                      "             break;",
                      "         case 'null':",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                      "             break;",
                      "         default:",
                      "            if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "            } else {",
                      "              compareValue = stringCompareValue;",
                      "            }",
                      "            break;",
                      "     }",
                      "     return { compareValue, value };",
                      "   } catch(e) {",
                      "     console.log(e);",
                      "     throw e;",
                      "   }",
                      " }",
                      " "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "  async function ____replaceIn(value) {",
                      "    if (typeof pm.variables.replaceInAsync === 'function') {",
                      "      return await pm.variables.replaceInAsync(value);",
                      "    }",
                      "    return pm.variables.replaceIn(value);",
                      "  };",
                      "",
                      "  ;(async () => {",
                      "    try {",
                      "      const formattedName = await ____replaceIn(`校验食物是否存在`);",
                      "      pm.test(formattedName, async function(done) {",
                      "        try {",
                      "          ",
                      "          const expression = await ____replaceIn(`$.data`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          let jsonData;",
                      "          try {",
                      "            jsonData = pm.response.json();",
                      "          } catch(e) {",
                      "            let text = pm.response.text();",
                      "            const xml2js = require('xml2js');",
                      "            function removeXmlUselessPrefixAndSuffix(text) {",
                      "              const start = text.indexOf('<');",
                      "              const end = text.lastIndexOf('>');",
                      "              if (start === -1 || end === -1) {",
                      "                return text;",
                      "              }",
                      "              return text.substring(start, end + 1);",
                      "            }",
                      "            text = removeXmlUselessPrefixAndSuffix(text);",
                      "            let json;",
                      "            let xmlParseOptions = {",
                      "                explicitArray: false,",
                      "                trim: true,",
                      "                ignoreAttrs: true,",
                      "            };",
                      "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                      "                jsonData = result;",
                      "            });",
                      "          }",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "",
                      "          ",
                      "          ",
                      "    const compareValue = await ____replaceIn(`null`);",
                      "    const formattedValues = ____formatValues(value, compareValue, 'notEqual');",
                      "  ",
                      "          pm.expect(formattedValues.value).to.not.eql(formattedValues.compareValue);",
                      "          done();",
                      "        } catch (err) {",
                      "          done(err);",
                      "        }",
                      "      });",
                      "    } catch(e) {",
                      "      setImmediate(() => { throw e });",
                      "    }",
                      "  })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "e87829f9-8f66-4b17-82ba-6e30aa24012f",
                "id": "e87829f9-8f66-4b17-82ba-6e30aa24012f",
                "type": "http",
                "name": "获取食材id",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 4,
                "tags": [],
                "httpApiId": 266969710,
                "httpApiCaseId": 238333178,
                "httpApiName": "获取食材id",
                "httpApiPath": "https://zhct.yyangpt.cn/p/food/readById",
                "httpApiMethod": "post",
                "httpApiCaseName": "获取食材id",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            },
            {
              "id": "c0955601-383f-4c03-89dd-356d9a25a95e",
              "name": "添加菜品",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "p",
                    "cater",
                    "add"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "baseUrl": "https://zhct.yyangpt.cn",
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "disabled": false,
                      "key": "name",
                      "value": "小炒辣椒"
                    },
                    {
                      "disabled": false,
                      "key": "category",
                      "value": "1"
                    },
                    {
                      "disabled": false,
                      "key": "sub_category",
                      "value": "1"
                    },
                    {
                      "disabled": false,
                      "key": "unit_number",
                      "value": "1"
                    },
                    {
                      "disabled": false,
                      "key": "unit",
                      "value": "2"
                    },
                    {
                      "disabled": false,
                      "key": "weight",
                      "value": "100"
                    },
                    {
                      "disabled": false,
                      "key": "raw_flag",
                      "value": "2"
                    },
                    {
                      "disabled": false,
                      "key": "raw_flag_weight",
                      "value": "80"
                    },
                    {
                      "disabled": false,
                      "key": "file_path",
                      "value": ""
                    },
                    {
                      "disabled": false,
                      "key": "taste",
                      "value": "1"
                    },
                    {
                      "disabled": false,
                      "key": "data",
                      "value": "{\"0\":{\"id\":1087,\"name\":\"花生油\",\"edible_part\":100,\"energy\":\"899.00\",\"carbohydrate\":\"0.00\",\"protein\":\"0.00\",\"fat\":\"99.90\",\"dietary_fiber\":\"0.00\",\"cooking_food\":4,\"category\":14,\"minute_sort\":69,\"sub_name\":\"\",\"create_by\":\"api\",\"create_time\":\"2020-05-24 02:34:20\",\"ratio\":\"100.00%\",\"\":\"\",\"weight\":\"1\",\"100.00%\":\"100.00%\",\"composition_id\":1087,\"uuid\":1087,\"food_weight\":\"1\",\"composition_name\":\"花生油\",\"composition_ratio\":\"100.00%\"}}"
                    },
                    {
                      "disabled": false,
                      "key": "cook_method",
                      "value": "1"
                    },
                    {
                      "disabled": false,
                      "key": "price",
                      "value": "0"
                    },
                    {
                      "disabled": false,
                      "key": "origin",
                      "value": "test"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "id": "commonScript.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "  ____string2Array = function(value) {",
                      "    if(typeof value === 'object'){",
                      "      return value;",
                      "    }",
                      "    try {",
                      "      return JSON.parse(value);",
                      "    } catch (e) {",
                      "      return value;",
                      "    }",
                      "  }",
                      "  ____string2Number = function(value, errorMsg) {",
                      "   if(typeof value !== 'string'){",
                      "     return value;",
                      "   }",
                      "   if (/^\\-?\\d+$/.test(value)) {",
                      "       return parseInt(value);",
                      "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                      "       return parseFloat(value);",
                      "   } else {",
                      "       throw new Error(errorMsg || 'Data type mismatch')",
                      "   }",
                      " }",
                      "",
                      "  ____formatValues = function(value, stringCompareValue, comparison) {",
                      "   try{",
                      "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                      "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                      "     let compareValue;",
                      "     switch (typeof value) {",
                      "         case 'string':",
                      "             if (isNumberComparisons) {",
                      "                value = ____string2Number(value);",
                      "                compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "                compareValue = ____string2Array(stringCompareValue);",
                      "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                      "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                      "             } else {",
                      "                compareValue = stringCompareValue;",
                      "             }",
                      "             break;",
                      "         case 'object':",
                      "             const isArray = value instanceof Array;",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                      "             } else if (isCollectionComparisons && isArray) {",
                      "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                      "            } else if (",
                      "              isArray &&",
                      "              comparison === 'include' &&",
                      "              value.includes(stringCompareValue)",
                      "            ) {",
                      "              compareValue = stringCompareValue;",
                      "            } else {",
                      "              try {",
                      "                  compareValue = JSON.parse(stringCompareValue);",
                      "              } catch (e) {",
                      "                  compareValue = stringCompareValue;",
                      "              }",
                      "            }",
                      "             break;",
                      "         case 'boolean':",
                      "             if (isNumberComparisons || isCollectionComparisons) {",
                      "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                      "             break;",
                      "           case 'bigint':",
                      "           case 'number':",
                      "             if (isNumberComparisons) {",
                      "               compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "              value = '' + value;",
                      "            } else {",
                      "               compareValue = stringCompareValue;",
                      "               value = '' + value;",
                      "             }",
                      "             break;",
                      "         case 'null':",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                      "             break;",
                      "         default:",
                      "            if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "            } else {",
                      "              compareValue = stringCompareValue;",
                      "            }",
                      "            break;",
                      "     }",
                      "     return { compareValue, value };",
                      "   } catch(e) {",
                      "     console.log(e);",
                      "     throw e;",
                      "   }",
                      " }",
                      " "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "  async function ____replaceIn(value) {",
                      "    if (typeof pm.variables.replaceInAsync === 'function') {",
                      "      return await pm.variables.replaceInAsync(value);",
                      "    }",
                      "    return pm.variables.replaceIn(value);",
                      "  };",
                      "",
                      "  ;(async () => {",
                      "    try {",
                      "      const formattedName = await ____replaceIn(`$.message Equals 菜品添加成功`);",
                      "      pm.test(formattedName, async function(done) {",
                      "        try {",
                      "          ",
                      "          const expression = await ____replaceIn(`$.message`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          let jsonData;",
                      "          try {",
                      "            jsonData = pm.response.json();",
                      "          } catch(e) {",
                      "            let text = pm.response.text();",
                      "            const xml2js = require('xml2js');",
                      "            function removeXmlUselessPrefixAndSuffix(text) {",
                      "              const start = text.indexOf('<');",
                      "              const end = text.lastIndexOf('>');",
                      "              if (start === -1 || end === -1) {",
                      "                return text;",
                      "              }",
                      "              return text.substring(start, end + 1);",
                      "            }",
                      "            text = removeXmlUselessPrefixAndSuffix(text);",
                      "            let json;",
                      "            let xmlParseOptions = {",
                      "                explicitArray: false,",
                      "                trim: true,",
                      "                ignoreAttrs: true,",
                      "            };",
                      "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                      "                jsonData = result;",
                      "            });",
                      "          }",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "",
                      "          ",
                      "          ",
                      "    const compareValue = await ____replaceIn(`菜品添加成功`);",
                      "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                      "  ",
                      "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                      "          done();",
                      "        } catch (err) {",
                      "          done(err);",
                      "        }",
                      "      });",
                      "    } catch(e) {",
                      "      setImmediate(() => { throw e });",
                      "    }",
                      "  })();",
                      "      "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.1.extractor",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "      async function ____replaceIn(value) {",
                      "        if (typeof pm.variables.replaceInAsync === 'function') {",
                      "          return await pm.variables.replaceInAsync(value);",
                      "        }",
                      "        return pm.variables.replaceIn(value);",
                      "      };",
                      "      ;(async () => {",
                      "        try{",
                      "          ",
                      "          const expression = await ____replaceIn(`$.data.uuid`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          const jsonData = pm.response.json();",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "          ",
                      "          ",
                      "        switch (typeof value) {",
                      "          case 'object':",
                      "            value = JSON.stringify(value);",
                      "            break;",
                      "          default:",
                      "            value = String(value);",
                      "            break;",
                      "        }",
                      "      ",
                      "          const formattedName = await ____replaceIn(`提取菜品uuid`);pm.globals.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Global variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                      "        } catch(e) {",
                      "          e.message = `error occurred in extracting variable 提取菜品uuid, error message: ` + e.message;",
                      "          setImmediate(() => { throw e });",
                      "        }",
                      "      })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "186e1435-cf2b-4661-918b-0dc2e71dea1e",
                "id": "186e1435-cf2b-4661-918b-0dc2e71dea1e",
                "type": "http",
                "name": "添加菜品",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 2,
                "tags": [],
                "httpApiId": 252596389,
                "httpApiCaseId": 238237612,
                "httpApiName": "添加菜品",
                "httpApiPath": "/p/cater/add",
                "httpApiMethod": "post",
                "httpApiCaseName": "添加菜品",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            },
            {
              "id": "8a6cc23b-63a7-49a1-a45f-2f8a250b21a8",
              "name": "菜品查看",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "p",
                    "cater",
                    "find"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "disabled": false,
                      "key": "uuid",
                      "value": "{{提取菜品uuid}}",
                      "type": "string"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.extractor",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "      async function ____replaceIn(value) {",
                      "        if (typeof pm.variables.replaceInAsync === 'function') {",
                      "          return await pm.variables.replaceInAsync(value);",
                      "        }",
                      "        return pm.variables.replaceIn(value);",
                      "      };",
                      "      ;(async () => {",
                      "        try{",
                      "          ",
                      "          const expression = await ____replaceIn(`$.data.name`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          const jsonData = pm.response.json();",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "          ",
                      "          ",
                      "        switch (typeof value) {",
                      "          case 'object':",
                      "            value = JSON.stringify(value);",
                      "            break;",
                      "          default:",
                      "            value = String(value);",
                      "            break;",
                      "        }",
                      "      ",
                      "          const formattedName = await ____replaceIn(`提取菜品名称`);pm.globals.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Global variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                      "        } catch(e) {",
                      "          e.message = `error occurred in extracting variable 提取菜品名称, error message: ` + e.message;",
                      "          setImmediate(() => { throw e });",
                      "        }",
                      "      })();",
                      "      "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.1.extractor",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "      async function ____replaceIn(value) {",
                      "        if (typeof pm.variables.replaceInAsync === 'function') {",
                      "          return await pm.variables.replaceInAsync(value);",
                      "        }",
                      "        return pm.variables.replaceIn(value);",
                      "      };",
                      "      ;(async () => {",
                      "        try{",
                      "          ",
                      "          const expression = await ____replaceIn(`$.data.uuid`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          const jsonData = pm.response.json();",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "          ",
                      "          ",
                      "        switch (typeof value) {",
                      "          case 'object':",
                      "            value = JSON.stringify(value);",
                      "            break;",
                      "          default:",
                      "            value = String(value);",
                      "            break;",
                      "        }",
                      "      ",
                      "          const formattedName = await ____replaceIn(`删除`);pm.variables.set(formattedName, value);console.log('___label_placeholder__processor___', 'The value of the Local variable ' + formattedName + ' has been set to' + ' ' + '' + value + '')",
                      "        } catch(e) {",
                      "          e.message = `error occurred in extracting variable 删除, error message: ` + e.message;",
                      "          setImmediate(() => { throw e });",
                      "        }",
                      "      })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "f34013fd-6d93-4b25-86b8-b0c6cf0d1760",
                "id": "f34013fd-6d93-4b25-86b8-b0c6cf0d1760",
                "type": "http",
                "name": "菜品查看",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 5,
                "tags": [],
                "httpApiId": 267032135,
                "httpApiCaseId": 238369938,
                "httpApiName": "菜品查看",
                "httpApiPath": "https://zhct.yyangpt.cn/p/cater/find",
                "httpApiMethod": "post",
                "httpApiCaseName": "菜品查看",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            },
            {
              "id": "a9e96007-ad61-458c-abb3-8cdc3ac51b93",
              "name": "保存菜谱",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "p",
                    "bill",
                    "add"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "baseUrl": "https://zhct.yyangpt.cn",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "disabled": false,
                      "key": "menu_date",
                      "value": "2025-03-04",
                      "type": "string"
                    },
                    {
                      "disabled": false,
                      "key": "restaurant_id",
                      "value": "1",
                      "type": "string"
                    },
                    {
                      "disabled": false,
                      "key": "data",
                      "value": "[{\"uuid\":\"{{提取菜品uuid}}\",\"name\":\"{{提取菜品名称}}\",\"img\":\"\",\"category\":1,\"select\":true,\"type\":1,\"meal_times\":1}]",
                      "type": "string"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "id": "commonScript.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "  ____string2Array = function(value) {",
                      "    if(typeof value === 'object'){",
                      "      return value;",
                      "    }",
                      "    try {",
                      "      return JSON.parse(value);",
                      "    } catch (e) {",
                      "      return value;",
                      "    }",
                      "  }",
                      "  ____string2Number = function(value, errorMsg) {",
                      "   if(typeof value !== 'string'){",
                      "     return value;",
                      "   }",
                      "   if (/^\\-?\\d+$/.test(value)) {",
                      "       return parseInt(value);",
                      "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                      "       return parseFloat(value);",
                      "   } else {",
                      "       throw new Error(errorMsg || 'Data type mismatch')",
                      "   }",
                      " }",
                      "",
                      "  ____formatValues = function(value, stringCompareValue, comparison) {",
                      "   try{",
                      "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                      "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                      "     let compareValue;",
                      "     switch (typeof value) {",
                      "         case 'string':",
                      "             if (isNumberComparisons) {",
                      "                value = ____string2Number(value);",
                      "                compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "                compareValue = ____string2Array(stringCompareValue);",
                      "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                      "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                      "             } else {",
                      "                compareValue = stringCompareValue;",
                      "             }",
                      "             break;",
                      "         case 'object':",
                      "             const isArray = value instanceof Array;",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                      "             } else if (isCollectionComparisons && isArray) {",
                      "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                      "            } else if (",
                      "              isArray &&",
                      "              comparison === 'include' &&",
                      "              value.includes(stringCompareValue)",
                      "            ) {",
                      "              compareValue = stringCompareValue;",
                      "            } else {",
                      "              try {",
                      "                  compareValue = JSON.parse(stringCompareValue);",
                      "              } catch (e) {",
                      "                  compareValue = stringCompareValue;",
                      "              }",
                      "            }",
                      "             break;",
                      "         case 'boolean':",
                      "             if (isNumberComparisons || isCollectionComparisons) {",
                      "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                      "             break;",
                      "           case 'bigint':",
                      "           case 'number':",
                      "             if (isNumberComparisons) {",
                      "               compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "              value = '' + value;",
                      "            } else {",
                      "               compareValue = stringCompareValue;",
                      "               value = '' + value;",
                      "             }",
                      "             break;",
                      "         case 'null':",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                      "             break;",
                      "         default:",
                      "            if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "            } else {",
                      "              compareValue = stringCompareValue;",
                      "            }",
                      "            break;",
                      "     }",
                      "     return { compareValue, value };",
                      "   } catch(e) {",
                      "     console.log(e);",
                      "     throw e;",
                      "   }",
                      " }",
                      " "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "  async function ____replaceIn(value) {",
                      "    if (typeof pm.variables.replaceInAsync === 'function') {",
                      "      return await pm.variables.replaceInAsync(value);",
                      "    }",
                      "    return pm.variables.replaceIn(value);",
                      "  };",
                      "",
                      "  ;(async () => {",
                      "    try {",
                      "      const formattedName = await ____replaceIn(`$.message Equals 添加成功`);",
                      "      pm.test(formattedName, async function(done) {",
                      "        try {",
                      "          ",
                      "          const expression = await ____replaceIn(`$.message`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          let jsonData;",
                      "          try {",
                      "            jsonData = pm.response.json();",
                      "          } catch(e) {",
                      "            let text = pm.response.text();",
                      "            const xml2js = require('xml2js');",
                      "            function removeXmlUselessPrefixAndSuffix(text) {",
                      "              const start = text.indexOf('<');",
                      "              const end = text.lastIndexOf('>');",
                      "              if (start === -1 || end === -1) {",
                      "                return text;",
                      "              }",
                      "              return text.substring(start, end + 1);",
                      "            }",
                      "            text = removeXmlUselessPrefixAndSuffix(text);",
                      "            let json;",
                      "            let xmlParseOptions = {",
                      "                explicitArray: false,",
                      "                trim: true,",
                      "                ignoreAttrs: true,",
                      "            };",
                      "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                      "                jsonData = result;",
                      "            });",
                      "          }",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "",
                      "          ",
                      "          ",
                      "    const compareValue = await ____replaceIn(`添加成功`);",
                      "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                      "  ",
                      "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                      "          done();",
                      "        } catch (err) {",
                      "          done(err);",
                      "        }",
                      "      });",
                      "    } catch(e) {",
                      "      setImmediate(() => { throw e });",
                      "    }",
                      "  })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "997f3705-683e-4e9f-b653-3899fbb2d721",
                "id": "997f3705-683e-4e9f-b653-3899fbb2d721",
                "type": "http",
                "name": "保存菜谱",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 3,
                "tags": [],
                "httpApiId": 252596293,
                "httpApiCaseId": 238330791,
                "httpApiName": "保存菜谱",
                "httpApiPath": "/p/bill/add",
                "httpApiMethod": "post",
                "httpApiCaseName": "保存菜谱",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            },
            {
              "id": "519ee6e2-6761-434b-ae4e-1d97463bafcf",
              "name": "菜品删除接口",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "",
                    "p",
                    "cater",
                    "del"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "disabled": false,
                      "key": "uuid",
                      "value": "{{删除}}",
                      "type": "string"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "id": "commonScript.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "  ____string2Array = function(value) {",
                      "    if(typeof value === 'object'){",
                      "      return value;",
                      "    }",
                      "    try {",
                      "      return JSON.parse(value);",
                      "    } catch (e) {",
                      "      return value;",
                      "    }",
                      "  }",
                      "  ____string2Number = function(value, errorMsg) {",
                      "   if(typeof value !== 'string'){",
                      "     return value;",
                      "   }",
                      "   if (/^\\-?\\d+$/.test(value)) {",
                      "       return parseInt(value);",
                      "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                      "       return parseFloat(value);",
                      "   } else {",
                      "       throw new Error(errorMsg || 'Data type mismatch')",
                      "   }",
                      " }",
                      "",
                      "  ____formatValues = function(value, stringCompareValue, comparison) {",
                      "   try{",
                      "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                      "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                      "     let compareValue;",
                      "     switch (typeof value) {",
                      "         case 'string':",
                      "             if (isNumberComparisons) {",
                      "                value = ____string2Number(value);",
                      "                compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "                compareValue = ____string2Array(stringCompareValue);",
                      "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                      "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                      "             } else {",
                      "                compareValue = stringCompareValue;",
                      "             }",
                      "             break;",
                      "         case 'object':",
                      "             const isArray = value instanceof Array;",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                      "             } else if (isCollectionComparisons && isArray) {",
                      "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                      "            } else if (",
                      "              isArray &&",
                      "              comparison === 'include' &&",
                      "              value.includes(stringCompareValue)",
                      "            ) {",
                      "              compareValue = stringCompareValue;",
                      "            } else {",
                      "              try {",
                      "                  compareValue = JSON.parse(stringCompareValue);",
                      "              } catch (e) {",
                      "                  compareValue = stringCompareValue;",
                      "              }",
                      "            }",
                      "             break;",
                      "         case 'boolean':",
                      "             if (isNumberComparisons || isCollectionComparisons) {",
                      "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                      "             break;",
                      "           case 'bigint':",
                      "           case 'number':",
                      "             if (isNumberComparisons) {",
                      "               compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "              value = '' + value;",
                      "            } else {",
                      "               compareValue = stringCompareValue;",
                      "               value = '' + value;",
                      "             }",
                      "             break;",
                      "         case 'null':",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                      "             break;",
                      "         default:",
                      "            if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "            } else {",
                      "              compareValue = stringCompareValue;",
                      "            }",
                      "            break;",
                      "     }",
                      "     return { compareValue, value };",
                      "   } catch(e) {",
                      "     console.log(e);",
                      "     throw e;",
                      "   }",
                      " }",
                      " "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "  async function ____replaceIn(value) {",
                      "    if (typeof pm.variables.replaceInAsync === 'function') {",
                      "      return await pm.variables.replaceInAsync(value);",
                      "    }",
                      "    return pm.variables.replaceIn(value);",
                      "  };",
                      "",
                      "  ;(async () => {",
                      "    try {",
                      "      const formattedName = await ____replaceIn(`$.message Equals 菜品删除成功`);",
                      "      pm.test(formattedName, async function(done) {",
                      "        try {",
                      "          ",
                      "          const expression = await ____replaceIn(`$.message`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          let jsonData;",
                      "          try {",
                      "            jsonData = pm.response.json();",
                      "          } catch(e) {",
                      "            let text = pm.response.text();",
                      "            const xml2js = require('xml2js');",
                      "            function removeXmlUselessPrefixAndSuffix(text) {",
                      "              const start = text.indexOf('<');",
                      "              const end = text.lastIndexOf('>');",
                      "              if (start === -1 || end === -1) {",
                      "                return text;",
                      "              }",
                      "              return text.substring(start, end + 1);",
                      "            }",
                      "            text = removeXmlUselessPrefixAndSuffix(text);",
                      "            let json;",
                      "            let xmlParseOptions = {",
                      "                explicitArray: false,",
                      "                trim: true,",
                      "                ignoreAttrs: true,",
                      "            };",
                      "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                      "                jsonData = result;",
                      "            });",
                      "          }",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "",
                      "          ",
                      "          ",
                      "    const compareValue = await ____replaceIn(`菜品删除成功`);",
                      "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                      "  ",
                      "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                      "          done();",
                      "        } catch (err) {",
                      "          done(err);",
                      "        }",
                      "      });",
                      "    } catch(e) {",
                      "      setImmediate(() => { throw e });",
                      "    }",
                      "  })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "7c6b354f-6e80-4226-865b-0bddfa25baa6",
                "id": "7c6b354f-6e80-4226-865b-0bddfa25baa6",
                "type": "http",
                "name": "菜品删除接口",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 6,
                "tags": [],
                "httpApiId": 266863332,
                "httpApiCaseId": 238459236,
                "httpApiName": "菜品删除接口",
                "httpApiPath": "https://zhct.yyangpt.cn//p/cater/del",
                "httpApiMethod": "post",
                "httpApiCaseName": "菜品删除接口",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            },
            {
              "id": "bba61716-4bd7-4942-b33a-5b572039f71c",
              "name": "食物成分删除接口",
              "request": {
                "url": {
                  "protocol": "https",
                  "path": [
                    "p",
                    "food",
                    "delete"
                  ],
                  "host": [
                    "zhct",
                    "yyangpt",
                    "cn"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Cookie",
                    "value": "_token=ABtQ0NxLpaiFEQB1Sdh0tAyGn2CikVRK%2FQAw82o2Xz2u%2BcoYilioPapdb7NVWwhM1BrAhAB0SpXKWMB1xik12g%3D%3D"
                  },
                  {
                    "key": "Access-Token",
                    "value": "{{terminal_token}}"
                  },
                  {
                    "key": "User-Agent",
                    "value": "app/1.0.0"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "disabled": false,
                      "key": "id",
                      "value": "{{成分}}",
                      "type": "string"
                    }
                  ]
                },
                "auth": {
                  "type": "noauth",
                  "noauth": []
                },
                "type": "http"
              },
              "response": [],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "id": "commonScript.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "  ____string2Array = function(value) {",
                      "    if(typeof value === 'object'){",
                      "      return value;",
                      "    }",
                      "    try {",
                      "      return JSON.parse(value);",
                      "    } catch (e) {",
                      "      return value;",
                      "    }",
                      "  }",
                      "  ____string2Number = function(value, errorMsg) {",
                      "   if(typeof value !== 'string'){",
                      "     return value;",
                      "   }",
                      "   if (/^\\-?\\d+$/.test(value)) {",
                      "       return parseInt(value);",
                      "   } else if (/^\\-?\\d+\\.\\d+$/.test(value)) {",
                      "       return parseFloat(value);",
                      "   } else {",
                      "       throw new Error(errorMsg || 'Data type mismatch')",
                      "   }",
                      " }",
                      "",
                      "  ____formatValues = function(value, stringCompareValue, comparison) {",
                      "   try{",
                      "     const isNumberComparisons = ['isBelow', 'isAtMost', 'isAbove', 'isAtLeast'].includes(comparison);",
                      "     const isCollectionComparisons = ['isOneOf', 'notOneOf'].includes(comparison);",
                      "     let compareValue;",
                      "     switch (typeof value) {",
                      "         case 'string':",
                      "             if (isNumberComparisons) {",
                      "                value = ____string2Number(value);",
                      "                compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "                compareValue = ____string2Array(stringCompareValue);",
                      "             } else if (comparison === 'exists' || comparison === 'notExist') {",
                      "                value = /^({%.*%})|({{.*}})$/.test(value) ? undefined : value;",
                      "             } else {",
                      "                compareValue = stringCompareValue;",
                      "             }",
                      "             break;",
                      "         case 'object':",
                      "             const isArray = value instanceof Array;",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type object cannot be compared using the ' + comparison + ' method')",
                      "             } else if (isCollectionComparisons && isArray) {",
                      "              throw new Error('Values of type array cannot be compared using the ' + comparison + ' method')",
                      "            } else if (",
                      "              isArray &&",
                      "              comparison === 'include' &&",
                      "              value.includes(stringCompareValue)",
                      "            ) {",
                      "              compareValue = stringCompareValue;",
                      "            } else {",
                      "              try {",
                      "                  compareValue = JSON.parse(stringCompareValue);",
                      "              } catch (e) {",
                      "                  compareValue = stringCompareValue;",
                      "              }",
                      "            }",
                      "             break;",
                      "         case 'boolean':",
                      "             if (isNumberComparisons || isCollectionComparisons) {",
                      "                 throw new Error('Values of type boolean cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'true' ? true : (stringCompareValue === 'false' ? false : stringCompareValue);",
                      "             break;",
                      "           case 'bigint':",
                      "           case 'number':",
                      "             if (isNumberComparisons) {",
                      "               compareValue = ____string2Number(stringCompareValue);",
                      "             } else if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "              value = '' + value;",
                      "            } else {",
                      "               compareValue = stringCompareValue;",
                      "               value = '' + value;",
                      "             }",
                      "             break;",
                      "         case 'null':",
                      "             if (isNumberComparisons) {",
                      "                 throw new Error('Values of type null cannot be compared using the ' + comparison + ' method')",
                      "             }",
                      "             compareValue = stringCompareValue === 'null' ? null : stringCompareValue;",
                      "             break;",
                      "         default:",
                      "            if (isCollectionComparisons) {",
                      "              compareValue = ____string2Array(stringCompareValue);",
                      "            } else {",
                      "              compareValue = stringCompareValue;",
                      "            }",
                      "            break;",
                      "     }",
                      "     return { compareValue, value };",
                      "   } catch(e) {",
                      "     console.log(e);",
                      "     throw e;",
                      "   }",
                      " }",
                      " "
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "id": "postProcessors.0.assertion",
                    "type": "text/javascript",
                    "exec": [
                      "",
                      "        if (JSON.setEnableBigInt) {",
                      "          JSON.setEnableBigInt(undefined);",
                      "        }",
                      "        ",
                      "  async function ____replaceIn(value) {",
                      "    if (typeof pm.variables.replaceInAsync === 'function') {",
                      "      return await pm.variables.replaceInAsync(value);",
                      "    }",
                      "    return pm.variables.replaceIn(value);",
                      "  };",
                      "",
                      "  ;(async () => {",
                      "    try {",
                      "      const formattedName = await ____replaceIn(`$.message Equals 删除成功`);",
                      "      pm.test(formattedName, async function(done) {",
                      "        try {",
                      "          ",
                      "          const expression = await ____replaceIn(`$.message`);",
                      "          const JSONPath = require('jsonpath-plus').JSONPath;",
                      "          let jsonData;",
                      "          try {",
                      "            jsonData = pm.response.json();",
                      "          } catch(e) {",
                      "            let text = pm.response.text();",
                      "            const xml2js = require('xml2js');",
                      "            function removeXmlUselessPrefixAndSuffix(text) {",
                      "              const start = text.indexOf('<');",
                      "              const end = text.lastIndexOf('>');",
                      "              if (start === -1 || end === -1) {",
                      "                return text;",
                      "              }",
                      "              return text.substring(start, end + 1);",
                      "            }",
                      "            text = removeXmlUselessPrefixAndSuffix(text);",
                      "            let json;",
                      "            let xmlParseOptions = {",
                      "                explicitArray: false,",
                      "                trim: true,",
                      "                ignoreAttrs: true,",
                      "            };",
                      "            xml2js.parseString(text, xmlParseOptions, function (_, result) {",
                      "                jsonData = result;",
                      "            });",
                      "          }",
                      "          let value = JSONPath({",
                      "            json: jsonData,",
                      "            path: expression,",
                      "            wrap: false",
                      "          });",
                      "",
                      "          if (false && undefined !== undefined) {",
                      "            if (Array.isArray(value)) {",
                      "              value = Number(undefined) >= 0 ? value[undefined] : value[value.length + Number(undefined)];",
                      "            } else {",
                      "              value = undefined;",
                      "            }",
                      "          }",
                      "",
                      "          ",
                      "          ",
                      "    const compareValue = await ____replaceIn(`删除成功`);",
                      "    const formattedValues = ____formatValues(value, compareValue, 'equal');",
                      "  ",
                      "          pm.expect(formattedValues.value).to.eql(formattedValues.compareValue);",
                      "          done();",
                      "        } catch (err) {",
                      "          done(err);",
                      "        }",
                      "      });",
                      "    } catch(e) {",
                      "      setImmediate(() => { throw e });",
                      "    }",
                      "  })();",
                      "      "
                    ]
                  }
                }
              ],
              "type": "http",
              "metaInfo": {
                "blockId": "d43cdcde-bc2d-4063-9b8f-ebea20f02b0c",
                "id": "d43cdcde-bc2d-4063-9b8f-ebea20f02b0c",
                "type": "http",
                "name": "食物成分删除接口",
                "projectId": 5737553,
                "relatedId": 6093815,
                "environmentId": 28851641,
                "blockNumber": 7,
                "tags": [],
                "httpApiId": 267179881,
                "httpApiCaseId": 238691626,
                "httpApiName": "食物成分删除接口",
                "httpApiPath": "https://zhct.yyangpt.cn/p/food/delete",
                "httpApiMethod": "post",
                "httpApiCaseName": "食物成分删除接口",
                "moduleId": 4788005,
                "serverId": "default"
              },
              "protocolProfileBehavior": {
                "useWhatWGUrlParser": false,
                "disableUrlEncoding": false,
                "disabledSystemHeaders": {},
                "disableCookies": false
              },
              "responseDefinition": {
                "validateDeletedResponse": false
              },
              "requestDefinition": {
                "jsonSchema": {},
                "examples": []
              },
              "overrideRequesterOptions": {
                "strictSSL": false
              }
            }
          ],
          "name": "运营人员流程"
        }
      ],
      "info": {
        "name": "运营人员流程",
        "folderName": "智慧健康餐厅主流程"
      },
      "dataSchemas": {},
      "mockRules": {
        "rules": [],
        "enableSystemRule": true
      },
      "environment": {
        "id": 28851641,
        "name": "商户端产业园演示环境",
        "type": "normal",
        "baseUrls": {
          "default": "https://zhct.yyangpt.cn"
        },
        "websocketBaseUrls": {},
        "socketioBaseUrls": {},
        "baseUrl": "https://zhct.yyangpt.cn",
        "variable": {
          "id": "15fdb65f-2df4-4dfb-8e66-6e6322954243",
          "name": "商户端产业园演示环境",
          "baseUrl": "https://zhct.yyangpt.cn",
          "baseUrls": {
            "default": "https://zhct.yyangpt.cn"
          },
          "values": [
            {
              "type": "any",
              "value": "",
              "key": "dateFromTempVariable",
              "isBindInitial": false,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "bindTime",
              "isBindInitial": false,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "delayedBindTime",
              "isBindInitial": false,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "formattedDelayedTime",
              "isBindInitial": false,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "zqa",
              "isBindInitial": false,
              "initialValue": ""
            }
          ]
        },
        "parameter": {
          "header": [],
          "query": [],
          "body": [],
          "cookie": []
        },
        "advancedSettings": {
          "default": {
            "requestProxySetting": {
              "type": "default",
              "agentId": 2
            }
          }
        }
      },
      "globals": {
        "baseUrls": {},
        "websocketBaseUrls": {},
        "socketioBaseUrls": {},
        "baseUrl": "",
        "variable": {
          "id": "9bf18748-71db-4a8a-9a27-62f176c39611",
          "baseUrl": "",
          "baseUrls": {},
          "values": [
            {
              "type": "any",
              "value": "",
              "key": "uuid",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "提取菜品uuid",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "提取菜品名称",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "to",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "shijian",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "dateFromTempVariable",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "cee",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "",
              "key": "sh",
              "isBindInitial": true,
              "initialValue": ""
            },
            {
              "type": "any",
              "value": "onlineshopmall",
              "key": "account-dev",
              "isBindInitial": true,
              "initialValue": "onlineshopmall"
            },
            {
              "type": "any",
              "value": "Shop@2025#Mall&88",
              "key": "pwd-dev",
              "isBindInitial": true,
              "initialValue": "Shop@2025#Mall&88"
            },
            {
              "type": "any",
              "value": "7E3A9D2C5F8B1E4G6H0J2K9L4M1N3P5Q",
              "key": "key-dev",
              "isBindInitial": true,
              "initialValue": "7E3A9D2C5F8B1E4G6H0J2K9L4M1N3P5Q"
            }
          ]
        },
        "parameter": {
          "header": [],
          "query": [],
          "body": [],
          "cookie": []
        }
      },
      "teamGlobals": {
        "baseUrls": {},
        "websocketBaseUrls": {},
        "socketioBaseUrls": {},
        "baseUrl": "",
        "variable": {
          "id": "a29e8e06-69ec-4ab2-8557-670583cfe7ca",
          "baseUrl": "",
          "baseUrls": {},
          "values": []
        },
        "parameter": {
          "header": [],
          "query": [],
          "body": [],
          "cookie": []
        }
      },
      "moduleVariablesMap": {
        "4788005": []
      },
      "defaultModuleId": 4788005,
      "isServerBuild": true,
      "isTestFlowControl": false,
      "databaseConnectionMap": {
        "124921": {
          "id": 124921,
          "createdAt": "2025-11-18T01:30:01.000Z",
          "updatedAt": "2025-11-18T01:30:01.000Z",
          "deletedAt": null,
          "name": "麒麟系统瀚高数据库",
          "type": "postgresql",
          "projectId": 5737553,
          "description": "麒麟系统瀚高数据库",
          "configs": {
            "default": {
              "port": "5866"
            }
          }
        }
      }
    },
    "runOptions": {
      "environmentId": 28851641,
      "useDataSetId": -1,
      "iterationCount": 1,
      "threadCount": 1,
      "onError": "ignore",
      "delayItem": 0,
      "saveReportDetail": "all",
      "saveVariables": true,
      "readGlobalCookie": false,
      "saveGlobalCookie": false,
      "runnerId": 0,
      "variableValue": "INITIAL_VALUE"
    },
    "projectOptions": {
      "enableJsonc": true,
      "enableBigint": false,
      "responseValidate": true,
      "isDefaultUrlEncoding": 2,
      "enableTestScenarioSetting": false,
      "enableYAPICompatScript": false,
      "publishedDocUrlRules": {
        "defaultRule": "RESOURCE_KEY_ONLY",
        "resourceKeyStandard": "LEGACY"
      },
      "folderShareExpandModeSettings": {
        "expandId": [],
        "mode": "AUTO"
      },
      "mockSettings": {},
      "language": "zh-CN"
    },
    "ciRunningOptions": {
      "environmentId": 28851641,
      "useDataSetId": -1,
      "iterationCount": 1,
      "threadCount": 1,
      "onError": "ignore",
      "delayItem": 0,
      "saveReportDetail": "all",
      "saveVariables": true,
      "readGlobalCookie": false,
      "saveGlobalCookie": false,
      "runnerId": 0,
      "variableValue": "INITIAL_VALUE"
    },
    "projectId": 5737553,
    "databaseConnectionMap": {
      "124921": {
        "id": 124921,
        "createdAt": "2025-11-18T01:30:01.000Z",
        "updatedAt": "2025-11-18T01:30:01.000Z",
        "deletedAt": null,
        "name": "麒麟系统瀚高数据库",
        "type": "postgresql",
        "projectId": 5737553,
        "description": "麒麟系统瀚高数据库",
        "configs": {
          "default": {
            "port": "5866"
          }
        }
      }
    },
    "reportUrlTemplate": "https://app.apifox.com/link/project/{{projectId}}/api-test/test-report/{{id}}",
    "reportExtra": {
      "runOptions": {
        "environmentId": 28851641,
        "useDataSetId": -1,
        "iterationCount": 1,
        "threadCount": 1,
        "onError": "ignore",
        "delayItem": 0,
        "saveReportDetail": "all",
        "saveVariables": true,
        "readGlobalCookie": false,
        "saveGlobalCookie": false,
        "runnerId": 0,
        "variableValue": "INITIAL_VALUE"
      },
      "testScenario": {
        "id": 6093815,
        "name": "运营人员流程"
      },
      "branch": {
        "id": 5420249,
        "name": "main"
      }
    },
    "runnerId": "5a1c17d9-7249-42b4-8559-0a01ef2be7a3",
    "name": "运营人员流程"
  }
}