[TOC]
### 用戶-基礎信息
#### URL
> web/index.php?c=user&a=edit&uid=用戶UID
#### 請求方式
> GET
#### 請求參數
無
#### 返回數據
```
{
"message": {
"errno": 0,
"message": {
"user": {
"uid": "337",
"owner_uid": "391",
"groupid": "56",
"username": "brjun", //用戶名
"type": "1",
"status": "2",
"joindate": "2018-08-16 14:03:05", //注冊時間
"joinip": "127.0.0.1",
"lastvisit": "1567496731",
"lastuniacid": "0",
"lastip": "172.17.0.1", //上次登錄IP
"remark": "123", //備注信息
"starttime": "1534399385",
"endtime": "2",
"founder_groupid": "0",
"register_type": "0",
"openid": "0",
"welcome_li<x>nk": "6",
"is_bind": "0",
"notice_setting": [],
"avatar": "http://prox.we7.com/attachment/images/0/2019/01/v3ZE8ZYfFip5E7f7yFf1ee1PB7EPK8.gif",
"hash": "e1cf66b46eb4e16b898abda9ead57054", //用戶頭像
"vice_founder_name": "fc1",
"name": "brjun",
"clerk_id": 337,
"store_id": 0,
"clerk_type": "2",
"last_visit": "2019-09-03 15:45:31", //上次登錄時間
"endtype": 2,
"url": "http://prox.we7.com/web/index.php?c=user&a=register&owner_uid=337", //注冊鏈接
"end": "永久" //到期時間
},
"profile": {
"id": "87",
"uid": "337",
"createtime": "1548296349",
"edittime": "1552629551",
"realname": "卜睿君", //真實姓名
"nickname": "昵稱brjun", //昵稱
"avatar": "http://prox.we7.com/attachment/images/0/2019/01/v3ZE8ZYfFip5E7f7yFf1ee1PB7EPK8.gif",
"qq": "351409246", //QQ號
"mobile": "13333431649", //手機號
"vip": "0",
"fakeid": "",
"gender": "0",
"birthyear": "1990",
"birthmonth": "3",
"birthday": "5",
"constellation": "",
"zodiac": "",
"telephone": "",
"idcard": "",
"studentid": "",
"grade": "",
"address": "山西省太原市許坦東街錦東國際A座12層", //郵寄地址
"zipcode": "",
"nationality": "",
"resideprovince": "",
"residecity": "",
"residedist": "",
"graduateschool": "",
"company": "",
"education": "",
"occupation": "",
"position": "",
"revenue": "10000", //擴展字段-年收入
"affectivestatus": "已婚", //擴展字段-情感狀態
"revenue": "",
"affectivestatus": "",
"lookingfor": "",
"bloodtype": "",
"height": "",
"weight": "",
"alipay": "",
"msn": "",
"email": "",
"taobao": "",
"site": "",
"bio": "",
"interest": "",
"workerid": "",
"send_expire_status": "0",
"is_send_mobile_status": "0",
"location": "",
"reside": { //居住地址
"province": "山西省",
"city": "太原市",
"district": "尖草坪區"
},
"birth": {
"year": "1990",
"month": "3",
"day": "5"
},
"resides": "山西省太原市尖草坪區", //居住地址
"births": "1990年3月5日" //出生年月日
},
"extra_fileds": [ //擴展字段
{
"id": "2",
"field": "nickname",
"available": "1",
"title": "昵稱",
"desc<x>ription": "",
"displayorder": "50",
"required": "0",
"unchangeable": "0",
"showinregister": "1",
"field_length": "64"
},
{
"id": "24",
"field": "revenue",
"available": "1",
"title": "年收入",
"desc<x>ription": "",
"displayorder": "0",
"required": "1",
"unchangeable": "0",
"showinregister": "1",
"field_length": "64"
},
{
"id": "25",
"field": "affectivestatus",
"available": "1",
"title": "情感狀態",
"desc<x>ription": "",
"displayorder": "0",
"required": "1",
"unchangeable": "0",
"showinregister": "1",
"field_length": "64"
}
]
}
},
"redirect": "",
"type": "ajax"
}
```
### 用戶-基礎信息修改
#### 修改頭像
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | avatar |
| avatar | string | 是 | 頭像鏈接地址 | 此處鍵值為type的值 |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改用戶名
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | username |
| username | string | 是 | 用戶名 | 此處鍵值為type的值 |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改密碼
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | password |
| newpwd | string | 是 | 新密碼 | |
| renewpwd | string | 是 | 確認密碼 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改真實姓名
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | realname |
| realname | string | 是 | 名字 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改生日
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | birth |
| year | int | 是 | 新密碼 | |
| month | int | 是 | 新密碼 | |
| day | int | 是 | 新密碼 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改qq
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | qq |
| qq | int | 是 | qq號 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改手機號
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | mobile |
| mobile | int | 是 | 手機號 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改郵寄地址
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | address |
| address | string | 是 | 郵寄地址 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改居住地址
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | reside |
| province | string | 是 | 省份 | |
| city | string | 是 | 市 | |
| district | string | 是 | 區 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改備注
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型 | remark |
| remark | string | 是 | 備注 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
#### 修改額外字段的數據(此處以昵稱舉例)
##### URL
> /web/index.php?c=user&a=profile&do=post
##### 請求方式
> POST
##### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 類型(字段名) | nickname |
| extra_field_key | string | 是 | 字段名稱(字段名) | nickname |
| extra_field_val | string | 是 | 字段值 | |
| uid | int | 是 | 用戶的uid | | |
##### 返回數據
```
{
"message": {
"errno": 0,
"message": "修改成功!"
},
"redirect": "",
"type": "ajax"
}
```
- 空白目錄
- 公共
- 系統自定義常量
- 圖片組件
- 權限組相關
- 平臺管理
- 公共數據
- 添加平臺
- 平臺列表
- 平臺回收站
- 平臺基礎信息
- 平臺停用、恢復、刪除
- 微信開放平臺
- 公眾號短信
- 平臺自定義到期提示
- 平臺使用者
- 平臺使用者權限設置
- 可用模塊、模板
- 應用操作員管理
- 版本管理
- 新建小程序版本
- 用戶管理
- 用戶管理列表
- 審核用戶列表
- 用戶回收站列表
- 用戶屬性設置
- 自定義到期提示
- 添加用戶
- 編輯-基礎信息
- 編輯-應用模板權限
- 編輯-賬號創建權限
- 編輯-賬號使用權限
- 編輯-使用賬號列表
- 編輯-操作應用列表
- 權限組
- 應用權限組-列表
- 應用權限組-編輯、添加
- 應用權限組-刪除
- 賬號權限組-列表
- 賬號權限組-編輯、添加
- 賬號權限組-刪除
- 用戶權限組合-列表
- 用戶權限組合-編輯、添加
- 用戶權限組合-刪除
- 系統功能
- 系統信息
- 站內公告
- 站內公告分類
- 短信管理
- 系統新聞
- 系統新聞分類
- 系統檢測優化
- 數據庫
- 木馬查殺
- 更新緩存