说明
服务器
- 开发服务器:https://pcapi-xiaotuxian-front-devtest.itheima.net
- 生产服务器:https://pcapi-xiaotuxian-front.itheima.net
请求参数
- 小程序端调用,请求头中 header 中添加:
'source-client': 'miniapp'
- 用户登录成功后,调用需要 token 的接口,无 token 或者 token 错误,响应状态码是 401
参数名 | 位置 | 类型 | 必填 | 说明 |
---|---|---|---|---|
source-client | header | string | 是 | 示例值:miniapp 代表小程序端,app 代表 App 端 |
Authorization | header | string | 否 | 示例值:Authorization: token |
最后修改时间: 2 年前