From 4dad41a7b9e6ec4557400ffc33816d13e245ca99 Mon Sep 17 00:00:00 2001 From: jinfengli Date: Tue, 7 Feb 2023 19:56:12 +0800 Subject: [PATCH] update --- officialserver/互动小说小程序文档.md | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 128 insertions(+), 1 deletion(-) diff --git "a/officialserver/\344\272\222\345\212\250\345\260\217\350\257\264\345\260\217\347\250\213\345\272\217\346\226\207\346\241\243.md" "b/officialserver/\344\272\222\345\212\250\345\260\217\350\257\264\345\260\217\347\250\213\345\272\217\346\226\207\346\241\243.md" index 8742eee..9939a7c 100644 --- "a/officialserver/\344\272\222\345\212\250\345\260\217\350\257\264\345\260\217\347\250\213\345\272\217\346\226\207\346\241\243.md" +++ "b/officialserver/\344\272\222\345\212\250\345\260\217\350\257\264\345\260\217\347\250\213\345\272\217\346\226\207\346\241\243.md" @@ -154,4 +154,131 @@ payload中包含的参数: | :----------- | :------------: | | wxOpenId | 用户open id | | wxChannelId | 第一次进来的渠道ID | -| userId | 晓悟用户ID | \ No newline at end of file +| userId | 晓悟用户ID | + +#### 分享激活 + +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 -- libgit2 0.27.1