make netease loginable

This commit is contained in:
aynakeya
2024-04-15 10:07:02 -07:00
parent ba4269d6c0
commit 131d71e2e3

View File

@@ -49,12 +49,12 @@ func (n *Netease) QrLoginVerify(qrlogin *miaosic.QrLoginSession) (*miaosic.QrLog
}, nil }, nil
} }
func (n *Netease) Logout() { func (n *Netease) Logout() error {
n.ReqData.Cookies = []*http.Cookie{ n.ReqData.Cookies = []*http.Cookie{
{Name: "MUSIC_U", Value: ""}, {Name: "MUSIC_U", Value: ""},
{Name: "__csrf", Value: ""}, {Name: "__csrf", Value: ""},
} }
return return nil
} }
func (n *Netease) SaveSession() string { func (n *Netease) SaveSession() string {