🎨 Unable to switch the publish service between multiple workspaces https://github.com/siyuan-note/siyuan/issues/16587

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-29 19:35:31 +08:00
parent d1422ea0df
commit ffd4ceb0d9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 51 additions and 45 deletions

View file

@ -171,10 +171,10 @@ func initHttpClient() {
}
func ParsePort(portString string) (uint16, error) {
if port, err := strconv.ParseUint(portString, 10, 16); err != nil {
port, err := strconv.ParseUint(portString, 10, 16)
if err != nil {
logging.LogErrorf("parse port [%s] failed: %s", portString, err)
return 0, err
} else {
return uint16(port), nil
}
return uint16(port), nil
}