企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ### 获取应用模块数据 #### URL > web/index.php?c=user&a=edit&do=edit_modules_tpl&uid=用户id #### 请求方式 >GET #### 请求参数 无 #### 返回数据 ``` { "message": { "errno": 0, "message": { "user_groups": {//所属用户组 "id": "56", "owner_uid": "0", "name": "用户权限组测试新支持", "package": [ 123, 122 ], "maxaccount": "2", "timelimit": "0", "maxwxapp": "3", "maxwebapp": "4", "maxphoneapp": "5", "maxxzapp": "6", "maxaliapp": "7", "maxbaiduapp": "8", "maxtoutiaoapp": "9", "package_detail": {//用户组列表 "122": { "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=1568002085", "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, "group_support": { "wxapp_support": 1, "account_support": 2, "welcome_support": 1, "webapp_support": 1, "phoneapp_support": 1, "xzapp_support": 1, "aliapp_support": 1, "baiduapp_support": 1, "toutiaoapp_support": 1 } }, "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=1568002085", "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, "group_support": { "wxapp_support": 1, "account_support": 2, "welcome_support": 1, "webapp_support": 1, "phoneapp_support": 1, "xzapp_support": 1, "aliapp_support": 1, "baiduapp_support": 1, "toutiaoapp_support": 1 } } }, "account": { "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=1568002085", "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=1568002085", "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 } } }, "123": { "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": {}, "account": {} } }, "user_group_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=1568002085", "main_module": false, "plugin_list": [], "recycle_info": { "wxapp_support": "1", "account_support": 0, "welcome_support": 0, "webapp_support": 0, "phoneapp_support": 0, "xzapp_support": 0, "aliapp_support": 0, "baiduapp_support": 0, "toutiaoapp_support": 0 }, "is_delete": false, "config": [], "enabled": "1", "displayorder": "7", "shortcut": "0", "module_shortcut": null, "group_support": { "wxapp_support": 1, "account_support": 2, "welcome_support": 1, "webapp_support": 1, "phoneapp_support": 1, "xzapp_support": 1, "aliapp_support": 1, "baiduapp_support": 1, "toutiaoapp_support": 1 } }, "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=1568002085", "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, "group_support": { "wxapp_support": 1, "account_support": 2, "welcome_support": 1, "webapp_support": 1, "phoneapp_support": 1, "xzapp_support": 1, "aliapp_support": 1, "baiduapp_support": 1, "toutiaoapp_support": 1 } } } }, "user_extra_groups": {//附加应用权限组 "122": { "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=1568002085", "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, "group_support": { "wxapp_support": 1, "account_support": 2, "welcome_support": 1, "webapp_support": 1, "phoneapp_support": 1, "xzapp_support": 1, "aliapp_support": 1, "baiduapp_support": 1, "toutiaoapp_support": 1 } }, "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=1568002085", "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, "group_support": { "wxapp_support": 1, "account_support": 2, "welcome_support": 1, "webapp_support": 1, "phoneapp_support": 1, "xzapp_support": 1, "aliapp_support": 1, "baiduapp_support": 1, "toutiaoapp_support": 1 } } }, "account": { "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=1568002085", "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=1568002085", "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 } } }, "123": { "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": {}, "account": {} } }, "extend": {//附加权限(应用、模板) "templates": [//微站模块 { "id": "41", "name": "style18", "title": "微站默认模板18" }, { "id": "197", "name": "style16", "title": "微站默认模板16" } ], "modules": [//应用模块 { "mid": "9061", "name": "lyp_welcomefullpage", "type": "business", "title": "高端整屏滚动首页", "title_initial": "G", "version": "2.1.9", "ability": "高端整屏滚动首页", "desc<x>ription": "高端整屏滚动首页", "author": "lyping", "url": "", "settings": "0", "subscribes": [], "handles": [], "isrulefields": "0", "issystem": "0", "target": "0", "iscard": "0", "permissions": "N;", "wxapp_support": "1", "account_support": "1", "welcome_support": "1", "webapp_support": "2", "oauth_type": "1", "phoneapp_support": "1", "xzapp_support": "1", "aliapp_support": "1", "logo": "http://prox.we7.com/addons/lyp_welcomefullpage/icon-custom.jpg", "baiduapp_support": "1", "toutiaoapp_support": "1", "from": "local", "isdisplay": 1, "preview": "http://prox.we7.com/addons/lyp_welcomefullpage/preview.jpg?v=1568002085", "main_module": false, "plugin_list": [], "recycle_info": [], "config": [], "enabled": 1, "displayorder": null, "shortcut": null, "module_shortcut": null, "support": "welcome_support" }, { "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=1568002085", "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, "support": "account_support" } ] } } }, "redirect": "", "type": "ajax" } ``` ### 修改所属用户组 #### URL > web/index.php?c=user&a=edit&do=edit_user_group #### 请求方式 > POST #### 请求参数 | 名称 | 类型 | 必填 | 描述 | | ----------- | :-----: | :-----: | ----------- | | uid | int | 是 | 用户UID | | groupid | int | 是 | 用户组ID | #### 返回数据 正确: ``` { "message": { "errno": 0, "message": "修改成功" }, "redirect": "", "type": "ajax" } ``` 错误: ``` { "message": { "errno": -1, "message": "要修改的用户组参数有误" }, "redirect": "", "type": "ajax" } ``` ### 删除所属用户组 #### URL > web/index.php?c=user&a=edit&do=delete_user_group #### 请求方式 > POST #### 请求参数 | 名称 | 类型 | 必填 | 描述 | | ----------- | :-----: | :-----: | ----------- | | uid | int | 是 | 用户的uid | | groupid | int | 是 | 用户组id | #### 返回数据 正确: ``` { "message": { "errno": 0, "message": "删除成功" }, "redirect": "", "type": "ajax" } ``` 错误: ``` { "message": { "errno": -1, "message": "权限错误" }, "redirect": "", "type": "ajax" } ``` ### 修改应用权限组 #### URL > web/index.php?c=user&a=edit&do=edit_uni_groups #### 请求方式 > POST #### 请求参数 | 名称 | 类型 | 必填 | 描述 | | ----------- | :-----: | :-----: | ----------- | | uid | int | 是 | 用户的UID | | uni_groups | array | 否 | 应用权限组的id数组 | #### 返回数据 ``` { "message": { "errno": 0, "message": "修改成功!" }, "redirect": "", "type": "ajax" } ``` ### 修改附加权限 #### URL > web/index.php?c=user&a=edit&do=edit_extra_modules #### 请求方式 > POST #### 请求参数 | 名称 | 类型 | 必填 | 描述 | 值 | | ----------- | :-----: | :-----: | ----------- | | uid | int | 是 | 用户的UID | | | extra_modules | array | 否 | 模块应用的数组 | extra_modules[0][name]=weliam_merchant&extra_modules[0][support]=account_support... | | extra_templates | array | 否 | 微站模块id数组 | extra_templates[0][id]=197... | #### 返回数据 ``` { "message": { "errno": 0, "message": "修改成功!" }, "redirect": "", "type": "ajax" } ```