Skip to content

Commit f8112e7

Browse files
authored
update 115 Open (#421)
1 parent a18306f commit f8112e7

File tree

14 files changed

+257
-49
lines changed

14 files changed

+257
-49
lines changed

docs/.vuepress/components/115/Token.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,24 @@ async function getToken() {
5757

5858
<template>
5959
<NSpace vertical size="large">
60-
<NButton block type="primary" @click="generateQrcode" v-if="!codeVerifier" :loading="gettingQrCode">Generate Qrcode</NButton>
60+
<NButton block type="primary" @click="generateQrcode" v-if="!codeVerifier" :loading="gettingQrCode">生成二维码</NButton>
6161
<NAlert title="Error" type="error" v-if="error1">
6262
{{ error1 }}
6363
</NAlert>
6464
<NSpace v-if="qrCode" vertical>
6565
<NSpace justify="center">
6666
<NImage width="300" :src="qrCode" />
6767
</NSpace>
68-
<NAlert title="Scan the QrCode" type="info"
69-
>Use 115 APP To Scan Then Click the Button Below</NAlert
68+
<NAlert title="扫描二维码" type="info"
69+
>使用 115 APP 扫描二维码,然后点击下方按钮</NAlert
7070
>
7171
<NButton
7272
size="large"
7373
@click="getToken"
7474
type="info"
7575
block
7676
:loading="gettingToken"
77-
>I have scan</NButton
77+
>已扫码</NButton
7878
>
7979
<NAlert title="Error" type="error" v-if="error2">
8080
{{ error2 }}

docs/.vuepress/components/aliyundrive/Request.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async function haveScan() {
113113
<template>
114114
<NSpace vertical size="large">
115115
<NCheckbox v-model:checked="useMyOwn" size="large"
116-
>Use my own client</NCheckbox
116+
>使用自己的客户端信息</NCheckbox
117117
>
118118
<template v-if="useMyOwn">
119119
<NInput size="large" v-model:value="client_id" placeholder="client_id" />
@@ -124,7 +124,7 @@ async function haveScan() {
124124
/>
125125
</template>
126126
<NButton size="large" type="primary" @click="goGet" block
127-
>Go to login</NButton
127+
>前往登录</NButton
128128
>
129129
<NButton
130130
size="large"
@@ -133,7 +133,7 @@ async function haveScan() {
133133
block
134134
:loading="gettingQrCode"
135135
:disabled="!!qrcode"
136-
>Scan QrCode
136+
>扫描二维码
137137
</NButton>
138138
<NAlert title="Error" type="error" v-if="qrcode?.error">
139139
{{ qrcode.error }}
@@ -142,16 +142,16 @@ async function haveScan() {
142142
<NSpace justify="center">
143143
<NImage width="300" :src="qrcode.qrCodeUrl" />
144144
</NSpace>
145-
<NAlert title="Scan the QrCode" type="info"
146-
>Use AliyunDrive APP To Scan Then Click the Button Below</NAlert
145+
<NAlert title="扫描二维码" type="info"
146+
>使用 AliyunDrive APP 扫描,然后点击下方按钮</NAlert
147147
>
148148
<NButton
149149
size="large"
150150
@click="haveScan"
151151
type="info"
152152
block
153153
:loading="gettingScanStatus"
154-
>I have scan</NButton
154+
>已扫码</NButton
155155
>
156156
</NSpace>
157157
<NAlert
55.2 KB
Loading
60.3 KB
Loading

docs/guide/drivers/115.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ sticky: true
1616
# this page will appear in starred articles
1717
star: true
1818
headerDepth: 5
19+
1920
---
2021

2122
# 115 Cloud / Share
2223

24+
::: tip
25+
26+
[**115 Official Open API**](115_open.md)
27+
28+
:::
29+
2330
## **115 Cloud**
2431

2532
### **Root folder ID**
@@ -112,6 +119,7 @@ const onClick = async ()=>{
112119
}
113120
</script>
114121

122+
115123
<button :disabled="state === 3 || state === 1"
116124
style="outline:none;padding:12px;background:#70c6be;border:none;border-radius:8px;cursor:pointer;font-size:20px;"
117125
@click="onClick">
@@ -122,8 +130,10 @@ style="outline:none;padding:12px;background:#70c6be;border:none;border-radius:8p
122130
<img :src="src"/>
123131
</div>
124132

133+
125134
<div v-show="token" >
126135

136+
127137
:::info Token: {{ token }}
128138
:::
129139

@@ -358,6 +368,7 @@ Source code from:[**https://gist.github.com/ChenyangGao/d26a592a0aeb13465511c8
358368
2. If the QR code cannot be displayed properly in the `CMD` and `powershell` terminals, you can use the `-o` parameter to generate an image to scan the code, or you need to install an additional terminal
359369

360370
1. Use the `-o` parameter to generate the image method and scan the QR code to confirm
371+
361372
- ```python
362373
python main.py wechatmini -o
363374
```
@@ -369,13 +380,13 @@ Source code from:[**https://gist.github.com/ChenyangGao/d26a592a0aeb13465511c8
369380
- `alipaymini` and `wechatmini` They are Alipay Mini Program and WeChat Mini Program.
370381
- **Windows、Mac、Linux should not be able to use it anymore. The official client was recently removed from the shelves.**
371382
- It is recommended to use some devices that you do not commonly use, otherwise logging in will crowd out the previous ones.
372-
383+
373384
-----
374-
385+
375386
2. Additional installation terminal
376387
- Windows Store:**https://apps.microsoft.com/detail/9n0dx20hk701?rtc=1&hl=zh-cn&gl=CN**
377388
- GitHub Download:**https://github.com/microsoft/terminal/releases**
378-
389+
379390
3. Other ways, solve it yourself
380391

381392
-----
@@ -429,9 +440,9 @@ After using the `-o` parameter, a QR code image will pop up automatically
429440
### **Rapid upload**
430441

431442
- **v.3.27.0** version Enhanced Rapid upload: You can directly upload files with `Alibaba Cloud Disk Open` by copying
432-
433-
- The premise is to upload the file from 115 Rapid upload to Alibaba Cloud Disk Open, the file already exists in Alibaba Cloud Disk Open, otherwise it is a normal copy task.
434-
- If you want to transfer 115 cloud disk files to Alibaba Cloud Disk in seconds, you need to turn on the Rapid upload option of Alibaba Cloud Disk, otherwise it will be uploaded in normal mode.
443+
444+
- The premise is to upload the file from 115 Rapid upload to Alibaba Cloud Disk Open, the file already exists in Alibaba Cloud Disk Open, otherwise it is a normal copy task.
445+
- If you want to transfer 115 cloud disk files to Alibaba Cloud Disk in seconds, you need to turn on the Rapid upload option of Alibaba Cloud Disk, otherwise it will be uploaded in normal mode.
435446

436447
If you want to upload files using Miaochuan, it is recommended to build an AList locally on your home computer and add a `local storage` and `115 cloud disk` to copy Miaochuan to save resources.
437448

docs/guide/drivers/115_open.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
# This is the icon of the page
3+
icon: iconfont icon-state
4+
# This control sidebar order
5+
order: 25
6+
# A page can have multiple categories
7+
category:
8+
- Guide
9+
# A page can have multiple tags
10+
tag:
11+
- Storage
12+
- Guide
13+
- "302"
14+
# this page is sticky in article list
15+
sticky: true
16+
# this page will appear in starred articles
17+
star: true
18+
headerDepth: 5
19+
---
20+
21+
# 115 Open
22+
23+
::: tip
24+
25+
Developed using [**115 Open Platform**](https://open.115.com/)
26+
27+
:::
28+
29+
<br/>
30+
31+
32+
33+
## **Get refresh token**
34+
35+
- **https://alist.nn.ci/tool/115/token**
36+
37+
![](/img/drivers/115/115_b.png#light)
38+
![](/img/drivers/115/115_h.png#dark)
39+
40+
<br/>
41+
42+
43+
44+
### **Precautions**
45+
46+
::: warning Token leakage post-processing method
47+
48+
If the Token is accidentally leaked, you can immediately obtain a new refresh token. The previous one will become invalid. After the invalidation, the following content will be displayed:
49+
50+
```html
51+
failed get objs: failed to list objs: error: refresh token error, errno: 0
52+
```
53+
54+
:::
55+
56+
The newly obtained refresh token cannot be directly replaced in the original driver. The API interface has limited flow and cannot be refreshed continuously in a short period of time. You can only delete the original driver and add it again (if it is still prompted, wait 1 minute and try again, use a new `refresh token`)
57+
58+
```html
59+
Failed init storage but storage is already created: failed init storage: error: refresh frequently, errno: 0
60+
```
61+
62+
<br/>
63+
64+
65+
66+
## **Root folder ID**
67+
68+
Open the official website of 115 Cloud and click the string behind the url when you click into the folder you want to set,
69+
70+
such as <https://115.com/?cid=249163533602609229&offset=0&tab=&mode=wangpan>,
71+
72+
which is `249163533602609229`
73+
74+
75+
76+
<br/>
77+
78+
### **The default download method used**
79+
80+
```mermaid
81+
---
82+
title: Which download method is used by default?
83+
---
84+
flowchart TB
85+
style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff
86+
style a2 fill:#ff7575,stroke:#333,stroke-width:4px
87+
subgraph ide1 [ ]
88+
a1
89+
end
90+
a1[302]:::someclass====|default|a2[user equipment]
91+
classDef someclass fill:#f96
92+
c1[local proxy]-.alternative.->a2[user equipment]
93+
b1[Download proxy URL]-.alternative.->a2[user equipment]
94+
click a1 "../drivers/common.html#webdav-policy"
95+
click b1 "../drivers/common.html#webdav-policy"
96+
click c1 "../drivers/common.html#webdav-policy"
97+
```

docs/guide/drivers/163music.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This is the icon of the page
33
icon: iconfont icon-state
44
# This control sidebar order
5-
order: 24
5+
order: 26
66
# A page can have multiple categories
77
category:
88
- Guide

docs/guide/drivers/baidu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ The root foler to mount, defaults to `/`
4242

4343

4444

45-
## **Custom crack ua**
45+
## ~~**Custom crack ua**~~
4646

47-
[**UA used when using 【Native Proxy & Crack API】**](https://github.com/alist-org/alist/issues/5602#issuecomment-1831188682)
47+
~~[**UA used when using 【Native Proxy & Crack API】**](https://github.com/alist-org/alist/issues/5602#issuecomment-1831188682)~~ The unofficial interface is no longer available
4848

4949
<br/>
5050

docs/zh/guide/drivers/115.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ headerDepth: 5
2020

2121
# 115 网盘/分享
2222

23+
::: tip
24+
25+
[**115 官方 Open API**](115_open.md)
26+
27+
:::
28+
29+
30+
2331
## 115 个人网盘
2432

2533
### **视频教程(优先选择文字教程)**

docs/zh/guide/drivers/115_open.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
# This is the icon of the page
3+
icon: iconfont icon-state
4+
# This control sidebar order
5+
order: 25
6+
# A page can have multiple categories
7+
category:
8+
- Guide
9+
# A page can have multiple tags
10+
tag:
11+
- Storage
12+
- Guide
13+
- "302"
14+
# this page is sticky in article list
15+
sticky: true
16+
# this page will appear in starred articles
17+
star: true
18+
headerDepth: 5
19+
---
20+
21+
# 115 Open
22+
23+
::: tip
24+
25+
使用 [**115开放平台**](https://open.115.com/) 开发
26+
27+
:::
28+
29+
<br/>
30+
31+
32+
33+
## **获取刷新令牌**
34+
35+
- **https://alist.nn.ci/zh/tool/115/token**
36+
37+
手机扫码后点击蓝色按钮即可获取 `refresh token`
38+
39+
![](/img/drivers/115/115_b.png#light)
40+
![](/img/drivers/115/115_h.png#dark)
41+
42+
<br/>
43+
44+
45+
46+
### **注意事项**
47+
48+
::: warning Token 泄漏后处理方法
49+
50+
如果不小心泄漏了 Token,可以马上重新获取一个新的刷新令牌,之前的就会失效,失效后会提示如下内容:
51+
52+
```html
53+
failed get objs: failed to list objs: error: refresh token error, errno: 0
54+
```
55+
56+
:::
57+
58+
新获取的刷新令牌无法直接在原驱动內进行更换刷新令牌,api接口有限流,短时间内不能连续刷新,只能删掉原驱动重新添加(如果还提示则等待1分钟再尝试,使用新的 `refresh token`
59+
60+
```html
61+
Failed init storage but storage is already created: failed init storage: error: refresh frequently, errno: 0
62+
```
63+
64+
65+
66+
<br/>
67+
68+
69+
70+
## **根文件夹ID**
71+
72+
默认根目录ID为:`0`
73+
74+
打开 115 网盘官网,点击进入要设置的文件夹时点击 URL 中 `cid`后面的数字
75+
76+
<https://115.com/?cid=249163533602609229&offset=0&tab=&mode=wangpan>
77+
78+
这个文件夹的 `根文件夹ID` 即为 `249163533602609229`
79+
80+
<br/>
81+
82+
83+
84+
### **默认使用的下载方式**
85+
86+
```mermaid
87+
---
88+
title: 默认使用的哪种下载方式?
89+
---
90+
flowchart TB
91+
style a1 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff
92+
style a2 fill:#ff7575,stroke:#333,stroke-width:4px
93+
subgraph ide1 [ ]
94+
a1
95+
end
96+
a1[302]:::someclass====|默认|a2[用户设备]
97+
classDef someclass fill:#f96
98+
c1[本机代理]-.备选.->a2[用户设备]
99+
b1[代理URL]-.备选.->a2[用户设备]
100+
click a1 "../drivers/common.html#webdav-策略"
101+
click b1 "../drivers/common.html#webdav-策略"
102+
click c1 "../drivers/common.html#webdav-策略"
103+
```

0 commit comments

Comments
 (0)