Skip to content
关注公众号,获取新课通知

修改资料 ​

接口URL ​

https://sqapi2.dishawang.com/api/v1/user/changeinfo

请求方式 ​

POST

Content-Type ​

urlencoded

请求Header参数 ​

参数名示例值参数类型是否必填参数描述
token36040cbcde65e482739afca7a5465ab750c1c5d5String是用户token

请求Body参数 ​

参数名示例值参数类型是否必填参数描述
name哈哈哈String是昵称
sex1Integer是性别:0=不限,1=男,2=女
qg1Integer是情感:0=不限,1=未婚,2=已婚
birthday1990-11-11String是生日
path广东广州String是所在地
desc我最帅String是个性签名

成功响应示例 ​

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "name": "哈哈哈",
    "id": 7,
    "username": "哈哈哈",
    "avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
    "password": true,
    "phone": "170****0000",
    "email": "17000000000@163.com",
    "status": 1,
    "age": 0,
    "sex": "1",
    "qg": "1",
    "job": null,
    "path": "广东广州",
    "birthday": "1990-11-11",
    "desc": "我最帅",
    "wx_openid": null,
    "wx_unionid": null,
    "create_time": null,
    "update_time": "2024-04-07 01:13:42",
    "fans_count": 46,
    "follows_count": 19,
    "articles_count": 30,
    "comments_count": 82
  }
}