feat(115): add QR code source selection (#5891)

* feat(115): add QR code source selection

closed #5386

* feat(115_share): add QR code source selection
This commit is contained in:
Shelton Zhu
2024-01-16 15:59:44 +08:00
committed by GitHub
parent f0e8c0e886
commit e3e790f461
6 changed files with 17 additions and 90 deletions

View File

@ -42,7 +42,7 @@ func (d *Pan115) login() error {
s := &driver115.QRCodeSession{
UID: d.Addition.QRCodeToken,
}
if cr, err = d.client.QRCodeLogin(s); err != nil {
if cr, err = d.client.QRCodeLoginWithApp(s, driver115.LoginApp(d.QRCodeSource)); err != nil {
return errors.Wrap(err, "failed to login by qrcode")
}
d.Addition.Cookie = fmt.Sprintf("UID=%s;CID=%s;SEID=%s", cr.UID, cr.CID, cr.SEID)