mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-12 07:48:12 +08:00
make netease loginable
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user