Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/chaoxing/meta.go
1987 views
1
package chaoxing
2
3
import (
4
"github.com/alist-org/alist/v3/internal/driver"
5
"github.com/alist-org/alist/v3/internal/op"
6
)
7
8
// 此程序挂载的是超星小组网盘,需要代理才能使用;
9
// 登录超星后进入个人空间,进入小组,新建小组,点击进去。
10
// url中就有bbsid的参数,系统限制单文件大小2G,没有总容量限制
11
type Addition struct {
12
// 超星用户名及密码
13
UserName string `json:"user_name" required:"true"`
14
Password string `json:"password" required:"true"`
15
// 从自己新建的小组url里获取
16
Bbsid string `json:"bbsid" required:"true"`
17
driver.RootID
18
// 可不填,程序会自动登录获取
19
Cookie string `json:"cookie"`
20
}
21
22
type Conf struct {
23
ua string
24
referer string
25
api string
26
DowloadApi string
27
}
28
29
func init() {
30
op.RegisterDriver(func() driver.Driver {
31
return &ChaoXing{
32
config: driver.Config{
33
Name: "ChaoXingGroupDrive",
34
OnlyProxy: true,
35
OnlyLocal: false,
36
DefaultRoot: "-1",
37
NoOverwriteUpload: true,
38
},
39
conf: Conf{
40
ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch",
41
referer: "https://chaoxing.com/",
42
api: "https://groupweb.chaoxing.com",
43
DowloadApi: "https://noteyd.chaoxing.com",
44
},
45
}
46
})
47
}
48
49