[GH-ISSUE #46] 希望API能支持剩下3个参数 #39

Closed
opened 2026-03-03 11:55:35 +03:00 by kerem · 4 comments
Owner

Originally created by @YujiaCheng1996 on GitHub (Mar 2, 2021).
Original GitHub issue: https://github.com/Finb/bark-server/issues/46

希望能进一步支持以下3个已有的实用参数:

    "automaticallyCopy": 1,
    "copy": "复制内容",
    "isArchive": 1,
Originally created by @YujiaCheng1996 on GitHub (Mar 2, 2021). Original GitHub issue: https://github.com/Finb/bark-server/issues/46 希望能进一步支持以下3个已有的实用参数: ``` "automaticallyCopy": 1, "copy": "复制内容", "isArchive": 1, ```
kerem closed this issue 2026-03-03 11:55:35 +03:00
Author
Owner

@Finb commented on GitHub (Mar 2, 2021):

现在应该可以了,你更新下试试

<!-- gh-comment-id:788690049 --> @Finb commented on GitHub (Mar 2, 2021): 现在应该可以了,你更新下试试
Author
Owner

@YujiaCheng1996 commented on GitHub (Mar 2, 2021):

值需要改为字符串格式:

    "ext_params": {
        "automaticallyCopy": "1",
        "copy": "复制内容",
        "isArchive": "1",
        "url": ""
    },

直接为数值无效:

    "ext_params": {
        "automaticallyCopy": 1,
        "copy": "复制内容",
        "isArchive": 1,
        "url": ""
    },

报错:

{
    "code": 400,
    "message": "request bind failed: json: cannot unmarshal \"1,\\n        \\\"copy\\\": \\\"复制内容...\" into Go struct field apns.PushMessagemap[string]string.ext_params.automaticallyCopy of type string",
    "timestamp": xxxxxxxxx
}

是bug还是feature?

<!-- gh-comment-id:788745392 --> @YujiaCheng1996 commented on GitHub (Mar 2, 2021): 值需要改为字符串格式: ``` "ext_params": { "automaticallyCopy": "1", "copy": "复制内容", "isArchive": "1", "url": "" }, ``` 直接为数值无效: ``` "ext_params": { "automaticallyCopy": 1, "copy": "复制内容", "isArchive": 1, "url": "" }, ``` 报错: ``` { "code": 400, "message": "request bind failed: json: cannot unmarshal \"1,\\n \\\"copy\\\": \\\"复制内容...\" into Go struct field apns.PushMessagemap[string]string.ext_params.automaticallyCopy of type string", "timestamp": xxxxxxxxx } ``` 是bug还是feature?
Author
Owner

@Finb commented on GitHub (Mar 2, 2021):

现在都可以了,再试试看

<!-- gh-comment-id:788814454 --> @Finb commented on GitHub (Mar 2, 2021): 现在都可以了,再试试看
Author
Owner

@YujiaCheng1996 commented on GitHub (Mar 3, 2021):

完美,这样每次传输都能省2字节。

<!-- gh-comment-id:789395257 --> @YujiaCheng1996 commented on GitHub (Mar 3, 2021): 完美,这样每次传输都能省2字节。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#39
No description provided.