[TOC]
### 可用應用模塊/模板
#### URL
>index.php?c=account&a=post&do=modules_tpl&uniacid=平臺UNIACID&account_type=平臺的類型
#### 請求方式
> GET
#### 請求參數
| 名稱 | 類型 | 必填 | 描述 |
| ----------- | :-----: | :-----: | ----------- |
| uniacid | int | 是 | 平臺uniacid |
| account_type | int | 是 | 平臺的類型([所有標識](http://s.w7.cc/index.php?c=wiki&do=view&id=383&list=3231 "所有標識")) |
#### 返回數據
```
{
"message": {
"errno": 0,
"message": {
"owner": {
"is_admin": false, //主管理員是否是站點創始人
"groupname": "用戶權限組測試新支持" //主管理員所在用戶組
},
"can_modify": true, //是否有修改權限
"modules_tpl": [ //該賬號的主管理員所在用戶權限組信息
{
"id": "123",
"name": "測試新支持",
"uniacid": "0",
"modules": "a:8:{s:7:\"modules\";a:1:{i:0;s:8:\"we7_0511\";}s:5:\"wxapp\";a:0:{}s:6:\"webapp\";a:0:{}s:8:\"phoneapp\";a:0:{}s:5:\"xzapp\";a:0:{}s:6:\"aliapp\";a:0:{}s:8:\"baiduapp\";a:0:{}s:10:\"toutiaoapp\";a:0:{}}",
"templates": "",
"uid": "0",
"modules_all": { //應用組權限下在該賬號下的模塊數據
"we7_0511": {
"mid": "8967",
"name": "we7_0511",
"type": "business",
"title": "米粥測試模塊",
"title_initial": "M",
"version": "2.2",
"ability": "we7_0511",
"desc<x>ription": "we7_0511",
"author": "admin",
"url": "we7_0511",
"settings": "1",
"subscribes": [],
"handles": [],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "2",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "2",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "2",
"logo": "http://prox.we7.com/addons/we7_0511/icon.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_0511/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": [],
"enabled": "1",
"displayorder": "7",
"shortcut": "0",
"module_shortcut": null
}
},
"type": "default"
},
{
"id": "122",
"name": "測試哦",
"uniacid": "0",
"modules": "a:8:{s:7:\"modules\";a:2:{i:0;s:15:\"weliam_merchant\";i:1;s:14:\"we7_diyspecial\";}s:5:\"wxapp\";a:0:{}s:6:\"webapp\";a:0:{}s:8:\"phoneapp\";a:0:{}s:5:\"xzapp\";a:0:{}s:6:\"aliapp\";a:0:{}s:8:\"baiduapp\";a:0:{}s:10:\"toutiaoapp\";a:0:{}}",
"templates": {
"style19": {
"id": "30",
"name": "style19",
"title": "微站默認模板19"
},
"style20": {
"id": "31",
"name": "style20",
"title": "微站默認模板20"
}
},
"uid": "0",
"modules_all": {
"weliam_merchant": {
"mid": "9050",
"name": "weliam_merchant",
"type": "biz",
"title": "智慧城市同城",
"title_initial": "Z",
"version": "3.1.69",
"ability": "智慧城市同城",
"desc<x>ription": "智慧城市同城",
"author": "微連科技",
"url": "http://bbs.we7.cc/",
"settings": "0",
"subscribes": [
"subscribe"
],
"handles": [
"text",
"image",
"voice",
"location",
"subscribe",
"qr",
"trace",
"click"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/weliam_merchant/icon-custom.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/weliam_merchant/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [
"weliam_merchant_plugin_distribution",
"weliam_merchant_plugin_diyposter"
],
"recycle_info": [],
"config": [],
"enabled": 1,
"displayorder": null,
"shortcut": null,
"module_shortcut": null
},
"we7_diyspecial": {
"mid": "9033",
"name": "we7_diyspecial",
"type": "activity",
"title": "專題頁面",
"title_initial": "Z",
"version": "1.6.3",
"ability": "緊跟時代步伐,擁抱HTML5,做出屬于我們自己的H5營銷推廣頁面。",
"desc<x>ription": "可制作兩種類型的場景頁:長單頁場景、多頁場景。\n\n一個專題頁面只能制作一種類型的場景頁。\n即一個專題頁面,要么是長單頁場景,要么是多頁場景。",
"author": "微擎團隊",
"url": "",
"settings": "0",
"subscribes": [],
"handles": [
"text"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/we7_diyspecial/icon-custom.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_diyspecial/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": {
"passive_li<x>nk_uniacid": [
857,
940
],
"direct_enter": 1
},
"enabled": "1",
"displayorder": "0",
"shortcut": "1",
"module_shortcut": null
}
},
"type": "default"
},
{
"id": "132",
"name": "應用組一",
"uniacid": "0",
"modules": "a:8:{s:7:\"modules\";a:2:{i:0;s:15:\"weliam_merchant\";i:1;s:14:\"we7_diyspecial\";}s:5:\"wxapp\";a:1:{i:0;s:11:\"zxsite_shop\";}s:6:\"webapp\";a:0:{}s:8:\"phoneapp\";a:0:{}s:5:\"xzapp\";a:0:{}s:6:\"aliapp\";a:0:{}s:8:\"baiduapp\";a:0:{}s:10:\"toutiaoapp\";a:0:{}}",
"templates": "",
"uid": "0",
"modules_all": {
"weliam_merchant": {
"mid": "9050",
"name": "weliam_merchant",
"type": "biz",
"title": "智慧城市同城",
"title_initial": "Z",
"version": "3.1.69",
"ability": "智慧城市同城",
"desc<x>ription": "智慧城市同城",
"author": "微連科技",
"url": "http://bbs.we7.cc/",
"settings": "0",
"subscribes": [
"subscribe"
],
"handles": [
"text",
"image",
"voice",
"location",
"subscribe",
"qr",
"trace",
"click"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/weliam_merchant/icon-custom.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/weliam_merchant/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [
"weliam_merchant_plugin_distribution",
"weliam_merchant_plugin_diyposter"
],
"recycle_info": [],
"config": [],
"enabled": 1,
"displayorder": null,
"shortcut": null,
"module_shortcut": null
}
},
"type": "extend"
}
],
"user_extend_modules": [ //用戶附加應用權限
{
"mid": "9033",
"name": "we7_diyspecial",
"type": "activity",
"title": "專題頁面",
"title_initial": "Z",
"version": "1.6.3",
"ability": "緊跟時代步伐,擁抱HTML5,做出屬于我們自己的H5營銷推廣頁面。",
"desc<x>ription": "可制作兩種類型的場景頁:長單頁場景、多頁場景。\n\n一個專題頁面只能制作一種類型的場景頁。\n即一個專題頁面,要么是長單頁場景,要么是多頁場景。",
"author": "微擎團隊",
"url": "",
"settings": "0",
"subscribes": [],
"handles": [
"text"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/we7_diyspecial/icon-custom.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_diyspecial/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": {
"passive_li<x>nk_uniacid": [
857,
940
],
"direct_enter": 1
},
"enabled": "1",
"displayorder": "0",
"shortcut": "1",
"module_shortcut": null
},
{
"mid": "8967",
"name": "we7_0511",
"type": "business",
"title": "米粥測試模塊",
"title_initial": "M",
"version": "2.2",
"ability": "we7_0511",
"desc<x>ription": "we7_0511",
"author": "admin",
"url": "we7_0511",
"settings": "1",
"subscribes": [],
"handles": [],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "2",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "2",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "2",
"logo": "http://prox.we7.com/addons/we7_0511/icon.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_0511/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": [],
"enabled": "1",
"displayorder": "7",
"shortcut": "0",
"module_shortcut": null
}
],
"extend": { //附加權限
"groups": [ //附加權限---附加應用權限組
{
"id": "133",
"name": "應用組二",
"uniacid": "0",
"modules": "a:8:{s:7:\"modules\";a:2:{i:0;s:14:\"we7_diyspecial\";i:1;s:9:\"we7_wmall\";}s:5:\"wxapp\";a:0:{}s:6:\"webapp\";a:0:{}s:8:\"phoneapp\";a:0:{}s:5:\"xzapp\";a:0:{}s:6:\"aliapp\";a:0:{}s:8:\"baiduapp\";a:0:{}s:10:\"toutiaoapp\";a:0:{}}",
"templates": "",
"uid": "0",
"modules_all": { //附加權限---附加應用權限組在該賬號下的模塊數據
"we7_diyspecial": {
"mid": "9033",
"name": "we7_diyspecial",
"type": "activity",
"title": "專題頁面",
"title_initial": "Z",
"version": "1.6.3",
"ability": "緊跟時代步伐,擁抱HTML5,做出屬于我們自己的H5營銷推廣頁面。",
"desc<x>ription": "可制作兩種類型的場景頁:長單頁場景、多頁場景。\n\n一個專題頁面只能制作一種類型的場景頁。\n即一個專題頁面,要么是長單頁場景,要么是多頁場景。",
"author": "微擎團隊",
"url": "",
"settings": "0",
"subscribes": [],
"handles": [
"text"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "a:0:{}",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "1",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/we7_diyspecial/icon-custom.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_diyspecial/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": {
"passive_li<x>nk_uniacid": [
857,
940
],
"direct_enter": 1
},
"enabled": "1",
"displayorder": "0",
"shortcut": "1",
"module_shortcut": null
},
"we7_wmall": {
"mid": "794",
"name": "we7_wmall",
"type": "business",
"title": "微擎外送|外賣|餐飲|生鮮|超市系統",
"title_initial": "W",
"version": "1.3",
"ability": "微擎外送|外賣|餐飲|生鮮|超市系統11",
"desc<x>ription": "微擎外送|外賣|餐飲|生鮮|超市系統",
"author": "微擎團隊&燈火闌珊",
"url": "http://bbs.we7.cc/",
"settings": "0",
"subscribes": [],
"handles": [
"location",
"text"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "N;",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "0",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/we7_wmall/icon.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_wmall/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": [],
"enabled": "1",
"displayorder": "8",
"shortcut": "1",
"module_shortcut": null
}
}
}
],
"modules": { //附加權限---附加應用權限
"we7_wmall": {
"mid": "794",
"name": "we7_wmall",
"type": "business",
"title": "微擎外送|外賣|餐飲|生鮮|超市系統",
"title_initial": "W",
"version": "1.3",
"ability": "微擎外送|外賣|餐飲|生鮮|超市系統11",
"desc<x>ription": "微擎外送|外賣|餐飲|生鮮|超市系統",
"author": "微擎團隊&燈火闌珊",
"url": "http://bbs.we7.cc/",
"settings": "0",
"subscribes": [],
"handles": [
"location",
"text"
],
"isrulefields": "0",
"issystem": "0",
"target": "0",
"iscard": "0",
"permissions": "N;",
"wxapp_support": "1",
"account_support": "2",
"welcome_support": "1",
"webapp_support": "1",
"oauth_type": "0",
"phoneapp_support": "1",
"xzapp_support": "1",
"aliapp_support": "1",
"logo": "http://prox.we7.com/addons/we7_wmall/icon.jpg",
"baiduapp_support": "1",
"toutiaoapp_support": "1",
"from": "cloud",
"isdisplay": 1,
"preview": "http://prox.we7.com/addons/we7_wmall/preview.jpg?v=1567494186",
"main_module": false,
"plugin_list": [],
"recycle_info": [],
"config": [],
"enabled": "1",
"displayorder": "8",
"shortcut": "1",
"module_shortcut": null
}
},
"templates": [ //附加權限---附加模板權限
{
"id": "41",
"name": "style18",
"title": "微站默認模板18"
},
{
"id": "197",
"name": "style16",
"title": "微站默認模板16"
}
]
},
"urls": {
"edit_owner_group": "http://prox.we7.com/web/index.php?c=user&a=edit&do=edit_modules_tpl&uid=408"
}
}
},
"redirect": "",
"type": "ajax"
}
```
### 修改附加應用權限組
#### URL
>/web/index.php?c=account&a=post&do=edit_modules_tpl&uniacid=平臺UNIACID
#### 請求方式
> POST
#### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 修改類型 | group |
| groupdata | array | 是 | 附加權限應用組的id | groupdata[0]=1&groupdata[1]=2... |
#### 返回數據
正確:
```
{
"message": {
"errno": 0,
"message": "修改成功"
},
"redirect": "http://new-we7.yietion.io/web/index.php?c=account&a=post&do=modules_tpl&uniacid=851&account_type=1",
"type": "ajax"
}
```
錯誤:
```
{
"message": {
"errno": -1,
"message": "參數錯誤"
},
"redirect": "http://new-we7.yietion.io/web/index.php?c=account&a=post&do=modules_tpl&uniacid=851&account_type=1",
"type": "ajax"
}
```
### 修改附加應用
#### URL
>/web/index.php?c=account&a=post&do=edit_modules_tpl&uniacid=平臺UNIACID
#### 請求方式
> POST
#### 請求參數
| 名稱 | 類型 | 必填 | 描述 | 值 |
| ----------- | :-----: | :-----: | ----------- |
| type | string | 是 | 修改類型 | extend |
| module | array | 否 | 應用名稱數組 | module[0]=we7_diyspecial&module[1]=we7_0511... |
| tpl | array | 否 | 模板id數組 | tpl[0]=197&tpl[1]=41... |
#### 返回數據
正確:
```
{
"message": {
"errno": 0,
"message": "修改成功"
},
"redirect": "http://new-we7.yietion.io/web/index.php?c=account&a=post&do=modules_tpl&uniacid=851&account_type=1",
"type": "ajax"
}
```
錯誤:
```
{
"message": {
"errno": -1,
"message": "參數錯誤"
},
"redirect": "http://new-we7.yietion.io/web/index.php?c=account&a=post&do=modules_tpl&uniacid=851&account_type=1",
"type": "ajax"
}
```
- 空白目錄
- 公共
- 系統自定義常量
- 圖片組件
- 權限組相關
- 平臺管理
- 公共數據
- 添加平臺
- 平臺列表
- 平臺回收站
- 平臺基礎信息
- 平臺停用、恢復、刪除
- 微信開放平臺
- 公眾號短信
- 平臺自定義到期提示
- 平臺使用者
- 平臺使用者權限設置
- 可用模塊、模板
- 應用操作員管理
- 版本管理
- 新建小程序版本
- 用戶管理
- 用戶管理列表
- 審核用戶列表
- 用戶回收站列表
- 用戶屬性設置
- 自定義到期提示
- 添加用戶
- 編輯-基礎信息
- 編輯-應用模板權限
- 編輯-賬號創建權限
- 編輯-賬號使用權限
- 編輯-使用賬號列表
- 編輯-操作應用列表
- 權限組
- 應用權限組-列表
- 應用權限組-編輯、添加
- 應用權限組-刪除
- 賬號權限組-列表
- 賬號權限組-編輯、添加
- 賬號權限組-刪除
- 用戶權限組合-列表
- 用戶權限組合-編輯、添加
- 用戶權限組合-刪除
- 系統功能
- 系統信息
- 站內公告
- 站內公告分類
- 短信管理
- 系統新聞
- 系統新聞分類
- 系統檢測優化
- 數據庫
- 木馬查殺
- 更新緩存