DeleteUnidirectionalFriend 删除单向好友 ref https://github.com/Mrs4s/MiraiGo/blob/54bdd873e3fed9fe1c944918924674dacec5ac76/client/web.go#L62
(uin uint32)
| 1470 | // DeleteUnidirectionalFriend 删除单向好友 |
| 1471 | // ref https://github.com/Mrs4s/MiraiGo/blob/54bdd873e3fed9fe1c944918924674dacec5ac76/client/web.go#L62 |
| 1472 | func (c *QQClient) DeleteUnidirectionalFriend(uin uint32) error { |
| 1473 | webRsp := &struct { |
| 1474 | ErrorCode int32 `json:"ErrorCode"` |
| 1475 | }{} |
| 1476 | rsp, err := c.webSsoRequest("ti.qq.com", "OidbSvc.0x5d4_0", fmt.Sprintf(`{"uin_list":[%v]}`, uin)) |
| 1477 | if err != nil { |
| 1478 | return err |
| 1479 | } |
| 1480 | if err = json.Unmarshal(utils.S2B(rsp), webRsp); err != nil { |
| 1481 | return errors.Wrap(err, "unmarshal json error") |
| 1482 | } |
| 1483 | if webRsp.ErrorCode != 0 { |
| 1484 | return fmt.Errorf("web sso request error: %v", webRsp.ErrorCode) |
| 1485 | } |
| 1486 | return nil |
| 1487 | } |
| 1488 | |
| 1489 | // CheckURLSafely 通过TX服务器检查URL安全性 |
| 1490 | // ref https://github.com/Mrs4s/MiraiGo/blob/54bdd873e3fed9fe1c944918924674dacec5ac76/client/security.go#L24 |
nothing calls this directly
no test coverage detected