From 2a1c5ff330c50a6d9e72aeefc9a56ca5b0020e15 Mon Sep 17 00:00:00 2001 From: hzz Date: Fri, 16 Jul 2021 11:45:41 +0800 Subject: [PATCH] fix: file path assign branch --- services/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/github/github.go b/services/github/github.go index c8b3abf..a59694a 100644 --- a/services/github/github.go +++ b/services/github/github.go @@ -132,7 +132,7 @@ func GetFiles() []map[string]interface{} { } for _, v := range mapResult{ - v["download_url"] = "https://cdn.jsdelivr.net/gh/"+ flag_handle.OWNER + "/" +flag_handle.REPO + "@master/" + v["path"].(string) + v["download_url"] = "https://cdn.jsdelivr.net/gh/"+ flag_handle.OWNER + "/" +flag_handle.REPO + "@"+flag_handle.BRANCH+"/" + v["path"].(string) } return mapResult }