LagrangeDev/Lagrange.Core

[Feature Request]:

Closed this issue · 1 comments

希望支持完整路径配置

Lagrange项目

OneBot

新需求内容

希望appsettings.jsonImplementations节点支持配置完整接口地址而不仅限于根+端口. go-cqhttp支持完整接口地址配置

    "Implementations": [
        {
            "Type": "HttpPost",
            "Host": "127.0.0.1",
            "Port": 3333,
            "Suffix": "/",
            "HeartBeatInterval": 5000,
            "HeartBeatEnable": true,
            "AccessToken": "",
            "Secret": ""
        }
    ]

变更为

    "Implementations": [
        {
            "Type": "HttpPost",
            "Url": "127.0.0.1:3333/api/bot",
            "Suffix": "/",
            "HeartBeatInterval": 5000,
            "HeartBeatEnable": true,
            "AccessToken": "",
            "Secret": ""
        }
    ]

神经 你猜猜 suffix干什么用的