wuranxu / pity

🎉一个持续迭代的开源接口测试平台,欢迎大家多提issue多给反馈。 求star⭐,我会努力更新下去的!
http://121.5.2.74
Apache License 2.0
633 stars 159 forks source link

接口用例内,添加参数的描述信息,保存不成功 #100

Closed abeelan closed 1 year ago

abeelan commented 1 year ago

接口用例内,添加参数的描述信息,点击「保存」后,描述信息并没有上传到数据库,前端页面刷新后信息就消失了。

以下两种情况都存在此问题:

点击保存后上传的消息体如下:

{
    "base_path": null,
    "body": null,
    "body_type": 0,
    "directory_id": "1",
    "id": 1,
    "name": "get",
    "out_parameters": [
        {
            "case_id": 1,
            "create_user": 1,
            "created_at": "2023-03-24 17:18:28",
            "deleted_at": 0,
            "expression": "data.a",
            "id": 1,
            "key": 0,
            "match_index": "1",
            "name": "a",
            "source": 1,
            "update_user": 1,
            "updated_at": "2023-03-24 18:19:59"
        },
        {
            "case_id": 1,
            "create_user": 1,
            "created_at": "2023-03-24 17:18:28",
            "deleted_at": 0,
            "expression": "data.b",
            "id": 2,
            "key": 1,
            "match_index": "1",
            "name": "b",
            "source": 1,
            "update_user": 1,
            "updated_at": "2023-03-24 18:19:59"
        }
    ],
    "priority": "P0",
    "request_headers": "{}",
    "request_method": "GET",
    "request_type": 1,
    "status": 1,
    "tag": null,
    "url": "https://httpbin.org/get?a=1&b=2"
}
wuranxu commented 1 year ago

这个问题可以重新验证下,应该已经修复了

wuranxu commented 1 year ago

这个问题可以重新验证下,应该已经修复了

本身设计未存储此字段数据,只是一个展示。