[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"
}
```
- 空白目录
- 公共
- 系统自定义常量
- 图片组件
- 权限组相关
- 平台管理
- 公共数据
- 添加平台
- 平台列表
- 平台回收站
- 平台基础信息
- 平台停用、恢复、删除
- 微信开放平台
- 公众号短信
- 平台自定义到期提示
- 平台使用者
- 平台使用者权限设置
- 可用模块、模板
- 应用操作员管理
- 版本管理
- 新建小程序版本
- 用户管理
- 用户管理列表
- 审核用户列表
- 用户回收站列表
- 用户属性设置
- 自定义到期提示
- 添加用户
- 编辑-基础信息
- 编辑-应用模板权限
- 编辑-账号创建权限
- 编辑-账号使用权限
- 编辑-使用账号列表
- 编辑-操作应用列表
- 权限组
- 应用权限组-列表
- 应用权限组-编辑、添加
- 应用权限组-删除
- 账号权限组-列表
- 账号权限组-编辑、添加
- 账号权限组-删除
- 用户权限组合-列表
- 用户权限组合-编辑、添加
- 用户权限组合-删除
- 系统功能
- 系统信息
- 站内公告
- 站内公告分类
- 短信管理
- 系统新闻
- 系统新闻分类
- 系统检测优化
- 数据库
- 木马查杀
- 更新缓存