mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02:48 +08:00
implement kugou logout
This commit is contained in:
@@ -87,6 +87,7 @@ func (n *Kugou) QrLoginVerify(qrlogin *miaosic.QrLoginSession) (*miaosic.QrLogin
|
||||
}
|
||||
|
||||
func (n *Kugou) Logout() error {
|
||||
n.cookie = make(map[string]string)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@ import (
|
||||
|
||||
var api = NewNetease()
|
||||
|
||||
func init() {
|
||||
api.RestoreSession("put your session here")
|
||||
}
|
||||
|
||||
func TestNetease_Search(t *testing.T) {
|
||||
result, err := api.Search("染 reol", 1, 20)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user