Skip to content

Commit 6968b70

Browse files
committed
Update misc.md
增加自动更新API
1 parent d8cf825 commit 6968b70

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/api/v1/misc.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,28 @@ GET /v1/misc/gray-status
177177
"msg": "success" // 返回消息
178178
}
179179
```
180+
181+
## 获取自动更新最新版本
182+
183+
GET /v1/misc/auto-update
184+
185+
参数:
186+
```
187+
platform=windows // 目标平台标识符,windows,android,macos,ios
188+
userId=123 // 获取更新的用户ID
189+
```
190+
191+
响应体:
192+
```XML
193+
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
194+
<channel>
195+
<title>云湖社交</title>
196+
<description>云湖社交更新中</description>
197+
<item>
198+
<enclosure url="" sparkle:dsaSignature="" sparkle:version="+0" sparkle:os="windows" length="0" type="application/octet-stream"></enclosure>
199+
// url属性为更新安装包网址,参数platform为macos,ios是此值可能为空
200+
// version属性为版本号
201+
</item>
202+
</channel>
203+
</rss>
204+
```

0 commit comments

Comments
 (0)