ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ### 获取某一应用权限组详情 #### URL > web/index.php?c=utility&a=group&do=get_module_group_detail_info&id=应用权限组ID #### 请求方式 > GET #### 请求参数 | 名称 | 类型 | 必填 | 描述 | 值 | | ----------- | :-----: | :-----: | ----------- | | id | int | 是 | 应用权限组id | - | #### 返回数据 正确: ``` { "message": { "errno": 0, "message": { "id": "133", "name": "应用组二", //应用权限组名称 "uniacid": "0", "uid": "0", "modules_all": [ //所有模块信息 { "id": "9063", "name": "we7_coupon", "title": "系统卡券", "logo": "http://prox.we7.com/addons/we7_coupon/icon.jpg", "support": "account" }, { "id": "9063", "name": "we7_coupon", "title": "系统卡券", "logo": "http://prox.we7.com/addons/we7_coupon/icon.jpg", "support": "webapp" }, { "id": "8967", "name": "we7_0511", "title": "米粥测试模块", "logo": "http://prox.we7.com/addons/we7_0511/icon.jpg", "support": "wxapp" }, { "id": "8967", "name": "we7_0511", "title": "米粥测试模块", "logo": "http://prox.we7.com/addons/we7_0511/icon.jpg", "support": "account" }, { "id": "8967", "name": "we7_0511", "title": "米粥测试模块", "logo": "http://prox.we7.com/addons/we7_0511/icon.jpg", "support": "webapp" }, { "id": "8967", "name": "we7_0511", "title": "米粥测试模块", "logo": "http://prox.we7.com/addons/we7_0511/icon.jpg", "support": "aliapp" } ], "templates": [ //应用权限组下所有模板信息 { "id": "25", "name": "style10", "title": "微站默认模板10", "logo": "http://prox.we7.com/app/themes/style10/preview.jpg", "support": "" }, { "id": "197", "name": "style16", "title": "微站默认模板16", "logo": "http://prox.we7.com/app/themes/style16/preview.jpg", "support": "" } ] } }, "redirect": "", "type": "ajax" } ``` 错误: ``` { "message": { "errno": -1, "message": "参数有误" }, "redirect": "", "type": "ajax" } ``` ### 编辑/添加应用权限组 #### URL > web/index.php?c=module&a=group&do=save #### 请求方式 > POST #### 请求参数 | 名称 | 类型 | 必填 | 描述 | 值 | | ----------- | :-----: | :-----: | ----------- | | id | int | 是 | 应用权限组ID | 如果有传就是修改 如果不传就是添加 | | name | string | 是 | 应用权限组名称 | | | templates | array | 否 | 模板数组(一维) | templates[0]=41&templates[1]=40... | | modules | array | 否 | 应用数组(二维) | 见下面示例 | 示例: ``` [modules] => Array ( [account] => Array ( [0] => weliam_merchant [1] => we7_diyspecial ) [wxapp] => Array ( [0] => zxsite_shop ) ...(其他账号类型数组) ) [templates] => Array ( [0] => 41 [1] => 30 [2] => 31 ) ``` #### 返回数据 正确: ``` { "message": { "errno": 0, "message": "添加成功" }, "redirect": "http://prox.we7.com/web/index.php?c=user&a=create-group&do=display&", "type": "ajax" } ``` 错误: ``` { "message": { "errno": -1, "message": "应用套餐组名称已存在" }, "redirect": "", "type": "ajax" } ```