unbind device push token on logout

This commit is contained in:
richjohnrambo
2026-09-23 11:39:16 +08:00
parent c4355ac236
commit a0d0bf574e
5 changed files with 229 additions and 9 deletions
+4 -4
View File
@@ -364,7 +364,7 @@ func (a *audit) run() {
if alice == nil || bob == nil || a.groupTopic == "" {
return "FAIL: websocket client or group missing"
}
text := "WS 群消息 " + suffix
text := "group audit message " + suffix
seq, topic, err := alice.pubWithHeadAndPeer(bob, a.groupTopic, map[string]any{"mime": "text/plain"}, text)
if err != nil {
return "FAIL: " + err.Error()
@@ -377,11 +377,11 @@ func (a *audit) run() {
return "FAIL: websocket client missing"
}
head := map[string]any{"mime": "text/plain", "x-im-client-mid": "dedup-" + suffix}
first, err := alice.pubCtrl(a.groupTopic, head, "群消息幂等测试 "+suffix)
first, err := alice.pubCtrl(a.groupTopic, head, "group dedup audit "+suffix)
if err != nil {
return "FAIL: first pub: " + err.Error()
}
second, err := alice.pubCtrl(a.groupTopic, head, "群消息幂等测试 "+suffix)
second, err := alice.pubCtrl(a.groupTopic, head, "group dedup audit "+suffix)
if err != nil {
return "FAIL: duplicate pub: " + err.Error()
}
@@ -406,7 +406,7 @@ func (a *audit) run() {
return fmt.Sprintf("anchor_seq=%d items=%d", anchor, count)
})
a.step("WS-22G", "群聊天记录搜索", "HTTP", "/v1/im/topics/{topic}/messages/search", func() string {
status, r, err := a.call("GET", "/v1/im/topics/"+url.PathEscape(a.groupTopic)+"/messages/search?q="+url.QueryEscape("WS 群消息")+"&type=text", nil, a.tokenB)
status, r, err := a.call("GET", "/v1/im/topics/"+url.PathEscape(a.groupTopic)+"/messages/search?q="+url.QueryEscape("group audit message")+"&type=text", nil, a.tokenB)
if err != nil {
return "FAIL: " + err.Error()
}