🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 获取平台数据 ### URL >/web/index.php?c=account&a=post ### 请求方式 GET ### 请求参数 | 名称 | 类型 | 必填 | 描述 | | ----------- | :-----: | :-----: | ----------- | | uniacid | int | 是 | 平台uniacid || ### 返回数据 ``` { "message": { "errno": 0, "message": { "acid": "100673", "uniacid": "1396", "token": "oc5wuuonzb4c5rxeycsmkis1mvucv05b", "encodingaeskey": "QsWhGkAAaX7Sbsxh74xW42Cnbv0zZR2E4Szp4HzA4EG", "level": "1", "account": "", "original": "", "key": "123412412", "secret": "", "name": "qweq", "appdomain": "", "auth_refresh_token": "", "encrypt_key": "123412412", "hash": "fOz6P1Kh", "type": "4", "isconnect": "0", "isdeleted": "0", "endtime": "1576206671", "groupid": "0", "default_acid": "100673", "desc<x>ription": "", "rank": "0", "createtime": "", "title_initial": "Q", "create_uid": "0", "type_sign": "wxapp", "starttime": "1537499471", "groups": [], "setting": { "uniacid": "1396", "passport": "", "oauth": "", "jsauth_acid": "0", "uc": "", "notify": "", "creditnames": { "credit1": { "title": "积分", "enabled": 1 }, "credit2": { "title": "余额", "enabled": 1 } }, "creditbehaviors": { "activity": "credit1", "currency": "credit2" }, "welcome": "", "default": "", "default_message": "", "shortcuts": "", "payment": "", "stat": "", "default_site": "0", "sync": "0", "recharge": "", "tplnotice": "", "grouplevel": "1", "mcplugin": "", "exchange_enable": "0", "coupon_type": "1", "statistics": "", "bind_domain": "", "comment_status": "0", "reply_setting": "0", "menuset": "", "default_module": "", "sync_member": "0", "attachment_limit": "0", "attachment_size": "0", "remote": "" }, "grouplevel": "1", "logo": "http://prox.we7.com/attachment/headimg_100673.jpg?time=1566387023", //头像图片 "qrcode": "http://prox.we7.com/attachment/qrcode_100673.jpg?time=1566387023", //二维码图片 "type_name": "微信小程序", "switchurl": "./index.php?c=account&a=display&do=switch&uniacid=1396", "setmeal": { "uid": "339", "username": "ceshi", "groupid": "37", "groupname": "用户组-其他10-6天", "timelimit": "2018-09-21~2019-12-13" }, "current_user_role": "founder", "start": "2018-09-21", "end": "2019-12-13", "endtype": 2, "highest_visit": 0, "attachment_size": 0, "attachment_limit": -1, "switchurl_full": "http://prox.we7.com/web/index.php?c=account&a=display&do=switch&uniacid=1369", "renewurl": "./index.php?c=site&a=entry&do=goodsbuyer&direct=1&m=store&type=24", //商业版时才返回此项 "renewurl_full": "http://prox.we7.com/web/index.php?c=site&a=entry&do=goodsbuyer&direct=1&m=store&type=24", //商业版时才返回此项 "siteurl": "http://prox.we7.com/", //服务器配置域名 "service_url": "http://prox.we7.com/api.php?id=100512", //服务器通讯URL "owner_endtime": "2019-12-13", //主管理员到期时间 "support_version": 1 //该平台账号类型是否支持版本:1支持;0不支持 } }, "redirect": "", "type": "ajax" } ``` ## 修改平台信息 ### URL > /web/index.php?c=account&a=post&do=ba<x>se ### 请求方式 POST ### 请求参数 | 名称 | 类型 | 必填 | 描述 | | ----------- | :-----: | :-----: | ----------- | | uniacid | int | 是 | 平台uniacid | | type | string | 是 | 修改项 | | request_data | string | 是 | 修改值 | | | 设置项 | type(固定值) | request_data 说明 | | ----------- | ----- | ----- | ----------- | | 头像 | headimgsrc | 头像图片链接 | | 二维码 | qrcodeimgsrc | 二维图片链接 | | 名称 | name | string | | 账号 | account | string | | 原始ID | original | string | | 公众号类型 | level | int | | 接入方式 | jointype | int 1 普通接入,或跳转去授权接入 | | 月访问总次数 | highest_visit | int 0 为不启用 | | 到期时间 | endtime | 设置此项无需传request_data参数,需要传 endtime年月日,endtype 1永久,2非永久 | | 附件空间 | attachment_limit | int 单位为 M 的内存值,设置为 -1 时不限空间 | | 百度、头条的Appid | appid | string | | 公众号、微信小程序、支付宝的AppId | key | string | | 百度、头条的AppKey | key | string | | 熊掌号的ClientId | key | string | | AppSecret, 熊掌号的ClientSecret | secret | string | | Token | token | string | | EncodingAESKey | encodingaeskey | string | ||||| ### 返回数据 成功: ``` { "message": { "errno": 0, "message": "修改成功!" }, "redirect": "", "type": "ajax" } ``` 失败: ``` { "message": { "errno": 1, "message": "修改失败!" }, "redirect": "", "type": "ajax" } ```