Skip to content

Commit

Permalink
header Subscription-Userinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonJunior committed Jul 23, 2024
1 parent 547eac5 commit d657fa6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/cooperation/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ sidebar_position: 2
- 以下由两种方案, 推荐修改header的方式, 代码侵入比较小。

### 方案1 修改HTTP 标头(header)
- 在订阅链接的 HTTP响应(response)中加入三个*响应标头*
- 在订阅链接的 HTTP响应(response)中加入四个*响应标头*
- (必填) **Subscription-Userinfo**
- 用于显示用户 已上传、下载、总共多少流量,套餐什么时候到期
- `upload= ; download= ; total= ; expire= ;`
- (必填) **isp-name**: 您的服务名称(机场名字)
- 展示在 设置 - ISP - 第一行
- 如果isp-name包含非ASCII字符(比如:中文), 必须使用urlencode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ sidebar_position: 2
### Solution 1: Modify HTTP Headers

- Add three *response headers* in the HTTP response of the subscription link
- (Required) **Subscription-Userinfo**
- Display the user's uploaded and downloaded data amounts, the total data usage, and the expiration date of the plan
- `upload= ; download= ; total= ; expire= ;`
- (Required) **isp-name**: Your service name (vpn name)
- Displayed in Settings - ISP - First line
- If the isp name contains non ASCII characters, URL-encoded must be used
Expand Down

0 comments on commit d657fa6

Please sign in to comment.