设置[用户名、生日、性别]接口

接口地址:

/?d=api&c=user&m=setusername

传参方式:POST

参数说明:

firstname:姓 ,

lastname:名 ,姓和名总长不超过20个字符

sex:数字,1为男性,2为女性

year:数字四位,不能为负数

month: 数字,介于1到12

day:数字,介于1到31

数据返回形如:

正确数据

{
  "status": 1,
  "data": {
    "msg": "设置成功#005",
    "user": {
      "firstname": "阿",
      "lastname": "北",
      "sex": 1,
      "year": 1999,
      "month": 11,
      "day": 11
    }
  }
}

错误数据

{
  "status": 0,
  "data": {
    "msg": "生日设置错误#003"
  }
}

results matching ""

    No results matching ""