forked from nibabashilkk/alipan_auto_sign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
43 lines (41 loc) · 1.12 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package main
import (
"autoSign/config"
"autoSign/platform"
"strings"
)
func main() {
pushPlusToken := config.ConfigInstance.PushPlusToken
refreshTokens := config.ConfigInstance.RefreshToken
bilibiliCookies := config.ConfigInstance.BilibiliCookie
jdCookies := config.ConfigInstance.JdCookie
kkCookie := config.ConfigInstance.KKCookie
if refreshTokens != "" {
refreshTokenList := strings.Split(refreshTokens, ",")
aliCloudDisk := &platform.AliCloudDisk{}
for _, refreshToken := range refreshTokenList {
aliCloudDisk.Run(pushPlusToken, refreshToken)
}
}
if bilibiliCookies != "" {
bilibiliCookieList := strings.Split(bilibiliCookies, ",")
bilibili := &platform.Bilibili{}
for _, bilibiliCookie := range bilibiliCookieList {
bilibili.Run(pushPlusToken, bilibiliCookie)
}
}
if jdCookies != "" {
jdCookiesList := strings.Split(jdCookies, ",")
jd := &platform.JD{}
for _, value := range jdCookiesList {
jd.Run(pushPlusToken, value)
}
}
if kkCookie != "" {
kkCookieList := strings.Split(kkCookie, ",")
kk := &platform.KK{}
for _, value := range kkCookieList {
kk.Run(pushPlusToken, value)
}
}
}