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
songyinting
jiaoyou_doc
Commits
819e92b7
Commit
819e92b7
authored
Jan 28, 2023
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ccbc3110
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
1 deletion
+55
-1
互动小说小程序文档.md
officialserver/互动小说小程序文档.md
+55
-1
No files found.
officialserver/互动小说小程序文档.md
View file @
819e92b7
-
基本地
址
-
基本地
址
...
@@ -102,3 +102,56 @@ curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/officalserver/wec
...
@@ -102,3 +102,56 @@ curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/officalserver/wec
--header 'Content-Type: text/plain' \
--header 'Content-Type: text/plain' \
--data-raw 'g4rSkgDpp83Bi2LIywNeYGK8ihhVX+eCnKNXayFLO8nseaXU05baPfsmVCZeXzgC'
--data-raw 'g4rSkgDpp83Bi2LIywNeYGK8ihhVX+eCnKNXayFLO8nseaXU05baPfsmVCZeXzgC'
```
```
#### 合并之后的登录接口
URL: {基本地址}/wechat/mini/program/login/info
METHOD: GET
RequestParams:
| Key | Describe |
| :----------- | :------------: |
| q | 请求参数拼接之后aes加密串 |
q中包含的参数:
| Key | Describe |
| :----------- | :------------: |
| jsCode | 小程序的jsCode |
| appId | 微信appId |
| channelId | 第一次进来时的渠道ID,可以为空,就会补充为header默认渠道ID |
Headers:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道ID |
| Timestamp | 时间戳 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
ResponseBody:
```
json
{
"payload"
:
"{
\"
wxChannelId
\"
:
\"
test
\"
,
\"
wxOpenId
\"
:
\"
test-user-1
\"
,
\"
userId
\"
:
\"
63d4a0177a2f7344946843cc
\"
}"
,
//
aes加密json之后的串
"encrypt"
:
0
,
"expire"
:
86400
,
"message"
:
"SUCCESS"
,
"tokenType"
:
"Bearer"
,
"accessToken"
:
"0f5f49f9-5560-485d-8ac5-56f9084cc4d5"
,
"status"
:
200
,
"retcode"
:
0
,
//
0
:
表示成功,其他表示失败
"timestamp"
:
1674886685016
,
"refreshToken"
:
"ae77c366-654b-4e13-a92a-b6681b239660"
}
```
payload中包含的参数:
| Key | Describe |
| :----------- | :------------: |
| wxOpenId | 用户open id |
| wxChannelId | 第一次进来的渠道ID |
| userId | 晓悟用户ID |
\ 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