We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b31ae9c commit 331f575Copy full SHA for 331f575
1 file changed
drivers/139/util.go
@@ -655,10 +655,12 @@ func (d *Yun139) personalGetLink(fileId string) (string, error) {
655
}
656
cdnUrl := jsoniter.Get(res, "data", "cdnUrl").ToString()
657
if cdnUrl != "" {
658
- return cdnUrl, nil
659
- } else {
660
- return jsoniter.Get(res, "data", "url").ToString(), nil
+ cdnSwitch := jsoniter.Get(res, "data", "cdnSwitch").ToBool()
+ if cdnSwitch {
+ return cdnUrl, nil
661
+ }
662
663
+ return jsoniter.Get(res, "data", "url").ToString(), nil
664
665
666
func (d *Yun139) getAuthorization() string {
0 commit comments