+++
post:/reg
*username=cuijun#賬號
*password=123456#密碼
*re_pwd=123456#確認密碼
*phone=13814510311#手機號碼
*code=759948#手機驗證碼
type=qq#第三方登錄類型 目前只支持 qq,wx,wb
openid=xxooxx#第三方登錄OpenId
<<<
success
{
"success": true,
"data": {
"username": "cuijun",
"nickname": "燈火闌珊",
"phone": "13814510318",
"email": "admin@admin.com",
"status": 10,
"created_at": "2016-10-13 13:02:03",
"updated_at": "2016-10-13 13:02:03",
"access_token": "8fd8845bebee7096c6f7655c1b076ff6",
"id": "30"
}
}
<<<
error
{
"success": false,
"data": {
"name": "Unauthorized",
"message": "用戶名已被占用",
"code": 0,
"status": 401,
"type": "yii\\web\\HttpException"
}
}
+++
### header頭信息:
| 參數名 | 參數值 |
| --- | --- |
| Accept | application/json |
| DeviceId | 310995000000000|
| Sign | e67ce2f83ca715552c7040c6801e020f |