蔚然 1.0
  1. System
蔚然 1.0
  • AliyunOss
    • Sts授权
      POST
  • Area
    • 地区代码
      GET
    • 国别
      GET
  • Category
    • 排序
      POST
  • Content
    • 内容列表
      GET
    • 内容详细
      GET
  • System
    • 检测 Token
      GET
    • 登录
      POST
    • 重设密码
      POST
    • 换绑手机
      POST
    • 续期
      POST
    • 退出登录
      POST
    • 检查通行证是否存在
      POST
    • 发送验证码
      GET
    • 获取验证串
      POST
    • 多语言包
      POST
    • 系统信息
      POST
    • 图片上传
      POST
    • 上传文件
      POST
  • Version
    • 版本检测
      GET
  • Demo
    • Get 示例
      GET
  1. System

续期

POST
/api/web/system/v1/auth/renew
System

请求参数

Query 参数
_weiran_secret
string 
可选
默认值:
{{weiran-secret}}
Header 参数
x-os
string 
可选
默认值:
{{x-os}}
x-id
string 
可选
默认值:
{{x-id}}
Authorization
string 
可选
默认值:
Beare {{_token}}
x-type
string 
可选
默认值:
user
Body 参数application/json
device_id
string 
可选
设备 ID, 参考 header x-id
device_type
string 
可选
设备类型, 参考 header x-os
示例
{
  "device_id": "string",
  "device_type": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/api/web/system/v1/auth/renew?_weiran_secret={{weiran-secret}}' \
--header 'x-os: {{x-os}}' \
--header 'x-id: {{x-id}}' \
--header 'Authorization: Beare {{_token}}' \
--header 'x-type: user' \
--header 'Content-Type: application/json' \
--data-raw '{
    "device_id": "string",
    "device_type": "string"
}'

返回响应

🟢200成功
application/json
操作成功
Body
code
integer 
状态码
可选
示例值:
1
message
string 
提示信息
可选
示例
{
  "code": 1,
  "message": "string"
}
修改于 2025-04-04 11:13:23
上一页
换绑手机
下一页
退出登录
Built with