Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jixudong
jiaoyou_doc
Commits
4dad41a7
Commit
4dad41a7
authored
Feb 07, 2023
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
819e92b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
130 additions
and
3 deletions
+130
-3
互动小说小程序文档.md
officialserver/互动小说小程序文档.md
+130
-3
No files found.
officialserver/互动小说小程序文档.md
View file @
4dad41a7
-
基本地
址
-
基本地
址
...
@@ -154,4 +154,131 @@ payload中包含的参数:
...
@@ -154,4 +154,131 @@ payload中包含的参数:
| :----------- | :------------: |
| :----------- | :------------: |
| wxOpenId | 用户open id |
| wxOpenId | 用户open id |
| wxChannelId | 第一次进来的渠道ID |
| wxChannelId | 第一次进来的渠道ID |
| userId | 晓悟用户ID |
| userId | 晓悟用户ID |
\ No newline at end of file
#### 分享激活
URL: {基本地址}/wechat/mini/program/interactnovel/share/active
METHOD: POST
Headers:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道ID |
| Timestamp | 时间戳 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
RequestBody:
```
aesjson加密串
```
RequestBody解密:
```
{
"uid":"112", // 分享者ID
"sharedUid":"334" // 被分享者的ID
}
```
ResponseBody:
```
json
{
"status"
:
200
,
"message"
:
"提示信息"
,
"retcode"
:
0
,
//
0
:
表示成功,其他表示失败
"payload"
:
""
,
//
aes加密json之后的串
}
```
#### 分享激活
URL: {基本地址}/wechat/mini/program/interactnovel/share/active
METHOD: POST
Headers:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道ID |
| Timestamp | 时间戳 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
RequestBody:
```
aesjson加密串
```
RequestBody解密:
```
{
"uid":"112", // 分享者ID
"sharedUid":"334" // 被分享者的ID
}
```
ResponseBody:
```
json
{
"status"
:
200
,
"message"
:
"提示信息"
,
"retcode"
:
0
,
//
0
:
表示成功,其他表示失败
"payload"
:
""
,
//
aes加密json之后的串
}
```
#### 获取vip信息
URL: {基本地址}/wechat/mini/program/interactnovel/vip/info
METHOD: GET
RequestParams:
| Key | Describe |
| :----------- | :------------: |
| q | 请求参数拼接之后aes加密串 |
q中包含的参数:
| Key | Describe |
| :----------- | :------------: |
| uid | 晓悟ID |
Headers:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道ID |
| Timestamp | 时间戳 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
ResponseBody:
```
json
{
"payload"
:
"{
\"
vipDeadline
\"
: 1231231231231,
\"
vipExist
\"
:1,
\"
shareActiveSize
\"
:2}"
,
"message"
:
"SUCCESS"
,
"retcode"
:
0
,
//
0
:
表示成功,其他表示失败
}
```
payload中包含的参数:
| Key | Describe |
| :----------- | :------------: |
| vipDeadline | vip到期时间, 毫秒时间戳 |
| vipExist | 是否拥有过VIP 1:表示拥有过, 0:表示没有 |
| shareActiveSize | 分享激活的数量 |
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment