公共接口


加载初始化
Headers
参数
名称 类型 必选 描述
version string 版本号
lng string 经度
lat string 纬度
正文
参数
响应输出

                                                            

                                                        
返回参数
上传文件
Headers
参数
名称 类型 必选 描述
file File 文件流
正文
参数
响应输出

                                                            

                                                        
返回参数
API通信使用的随机通信码
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
阅读公告存储cookie
Headers
参数
名称 类型 必选 描述
title string 标题
正文
参数
响应输出

                                                            

                                                        
返回参数

示例接口


测试描述信息
Headers
名称 类型 必选 描述
token string 请求的Token
参数
名称 类型 必选 描述
id integer 会员ID
name string 用户名
data object 扩展数据
正文
Headers
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{
         'code':'1',
         'msg':'返回成功'
        }
无需登录的接口
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
需要登录的接口
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
需要登录且需要验证有相应组的权限
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

邮箱验证码接口


发送验证码
Headers
参数
名称 类型 必选 描述
email string 邮箱
event string 事件名称
正文
参数
响应输出

                                                            

                                                        
返回参数
检测验证码
Headers
参数
名称 类型 必选 描述
email string 邮箱
event string 事件名称
captcha string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数

首页接口


首页
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
轮播图
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
友情链接
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

站内信


站内信列表(未读)
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
阅读站内信
Headers
参数
名称 类型 必选 描述
msgId int 站内信ID
正文
参数
响应输出

                                                            

                                                        
返回参数
站内信删除
Headers
参数
名称 类型 必选 描述
msgId int 站内信ID
正文
参数
响应输出

                                                            

                                                        
返回参数

计划任务监控接口


计划任务队列
Headers
参数
名称 类型 必选 描述
token string 计划任务监控密钥
正文
参数
响应输出

                                                            

                                                        
返回参数
宝塔资源监控
Headers
参数
名称 类型 必选 描述
token string 计划任务监控密钥
limit int 一次检查多少条
checkTime int 检查间隔时间
正文
参数
响应输出

                                                            

                                                        
返回参数
服务器过期监控
Headers
参数
名称 类型 必选 描述
token string 计划任务监控密钥
limit int 一次检查多少条
ftqq int 方糖通知
email int 邮件通知
正文
参数
响应输出

                                                            

                                                        
返回参数
主机过期监控
Headers
参数
名称 类型 必选 描述
token string 计划任务监控密钥
limit int 一次检查多少条
tz_user int 通知用户
tz_admin int 通知站长
正文
参数
响应输出

                                                            

                                                        
返回参数
自定义主机到期监控
Headers
参数
名称 类型 必选 描述
token string 计划任务监控密钥
limit int 一次检查多少条
ftqq int 方糖通知
email int 邮件通知
正文
参数
响应输出

                                                            

                                                        
返回参数
{"code":1,"msg":"请求成功","time":"1589893924","data":{"xxxx":"success"}}

服务器对接接口


首页
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
正文
参数
响应输出

                                                            

                                                        
返回参数
服务器信息
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"请求成功","time":"1588570387","data":{"id":8,"name":"华为云121","local":"成都","createtime":"2020-02-17 14:25:52","updatetime":"2020-05-04 09:06:08","expiretime":1601447101,"os":"linux","ip":"","token":"fdd80c9c0c0fe3d83cd7b931499f5c30","is_api":"normal","note":"","status":"normal","type":"btpanel","is_vsftpd":1,"phpMyAdmin":"http://x.x.x.x:888/phpmyadmin_xxxxxxxxxx/index.php"}}
资源组信息
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"请求成功","time":"1588635463","data":[{"id":1,"name":"宝塔默认","value":"a:23:{s:4:\"type\";s:7:\"btpanel\";s:4:\"name\";s:12:\"宝塔默认\";s:3:\"sql\";s:1:\"1\";s:3:\"ftp\";s:1:\"1\";s:4:\"port\";s:2:\"80\";s:10:\"domain_num\";s:1:\"5\";s:12:\"web_back_num\";s:1:\"5\";s:12:\"sql_back_num\";s:1:\"5\";s:6:\"is_icp\";s:1:\"0\";s:14:\"default_domain\";s:7:\"xxx.com\";s:16:\"default_analysis\";s:13:\"123456789.com\";s:7:\"console\";s:18:\"/vhost/index/index\";s:16:\"preset_procedure\";s:1:\"1\";s:9:\"is_custom\";s:1:\"1\";s:10:\"default_ip\";s:9:\"127.0.0.1\";s:14:\"default_phpver\";s:1:\"5\";s:9:\"perserver\";s:3:\"100\";s:10:\"limit_rate\";s:3:\"500\";s:15:\"is_domain_white\";s:1:\"0\";s:8:\"site_max\";s:3:\"200\";s:7:\"sql_max\";s:3:\"200\";s:8:\"flow_max\";s:3:\"200\";s:6:\"status\";s:6:\"normal\";}","createtime":"2019-12-29 14:35:33","updatetime":"2020-04-06 12:29:57","status":"normal","type":"btpanel"},{"id":2,"name":"康乐默认","value":"a:33:{s:4:\"type\";s:6:\"epanel\";s:4:\"name\";s:12:\"康乐默认\";s:9:\"e_console\";s:32:\"http://127.0.0.1:3312/vhost\";s:11:\"e_is_custom\";s:1:\"1\";s:16:\"e_default_domain\";s:9:\"xxxxx.com\";s:10:\"product_id\";s:0:\"\";s:6:\"e_type\";s:1:\"0\";s:5:\"e_sql\";s:1:\"1\";s:5:\"e_ftp\";s:1:\"1\";s:8:\"templete\";s:1:\"0\";s:11:\"subtemplete\";s:5:\"php53\";s:9:\"web_quota\";s:3:\"200\";s:8:\"db_quota\";s:3:\"200\";s:8:\"e_domain\";s:1:\"2\";s:11:\"subdir_flag\";s:1:\"1\";s:6:\"subdir\";s:7:\"wwwroot\";s:10:\"max_subdir\";s:2:\"10\";s:11:\"ftp_connect\";s:2:\"10\";s:7:\"ftp_usl\";s:1:\"8\";s:7:\"ftp_dsl\";s:2:\"10\";s:10:\"flow_limit\";s:3:\"200\";s:11:\"max_connect\";s:1:\"0\";s:10:\"max_worker\";s:1:\"0\";s:11:\"speed_limit\";s:3:\"200\";s:8:\"htaccess\";s:1:\"1\";s:8:\"log_file\";s:1:\"0\";s:10:\"log_handle\";s:1:\"0\";s:6:\"access\";s:1:\"1\";s:3:\"ssi\";s:1:\"0\";s:13:\"ignore_backup\";s:1:\"0\";s:4:\"e_ip\";s:0:\"\";s:6:\"e_port\";s:0:\"\";s:6:\"status\";s:6:\"normal\";}","createtime":"2019-12-29 14:35:33","updatetime":"2020-04-25 22:09:47","status":"normal","type":"epanel"}]}
权限组信息
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"请求成功","time":"1588636746","data":{"1":[{"id":1,"pid":0,"title":"控制台首页","name":"vhost/index/index"},{"id":2,"pid":0,"title":"域名","name":"vhost/index/domain"},{"id":3,"pid":2,"title":"域名绑定","name":"vhost/index/incdomain"},{"id":4,"pid":2,"title":"域名绑定删除","name":"vhost/index/deldomain"},{"id":5,"pid":0,"title":"密码设置","name":"vhost/index/pass"},{"id":6,"pid":5,"title":"主机密码修改","name":"vhost/index/passvhost"},{"id":7,"pid":5,"title":"数据库密码修改","name":"vhost/index/passsql"},{"id":8,"pid":5,"title":"ftp密码修改","name":"vhost/index/passftp"},{"id":9,"pid":0,"title":"带宽限制","name":"vhost/index/speed"},{"id":10,"pid":9,"title":"限速修改","name":"vhost/index/speedup"},{"id":11,"pid":9,"title":"关闭限速","name":"vhost/index/speedoff"},{"id":12,"pid":0,"title":"默认文件","name":"vhost/index/defaultfile"},{"id":13,"pid":12,"title":"默认文件修改","name":"vhost/index/fileup"},{"id":14,"pid":0,"title":"301重定向(普通版)","name":"vhost/index/rewrite301"},{"id":15,"pid":14,"title":"修改301重定向","name":"vhost/index/r301up"},{"id":16,"pid":14,"title":"关闭301重定向","name":"vhost/index/r301off"},{"id":17,"pid":0,"title":"重定向(测试版)","name":"vhost/index/redir"},{"id":18,"pid":17,"title":"修改重定向","name":"vhost/index/redirup"},{"id":19,"pid":17,"title":"删除重定向","name":"vhost/index/redirdel"},{"id":20,"pid":0,"title":"伪静态规则","name":"vhost/index/rewrite"},{"id":21,"pid":20,"title":"获取伪静态规则","name":"vhost/index/rewriteget"},{"id":22,"pid":20,"title":"设置伪静态规则","name":"vhost/index/rewriteset"},{"id":23,"pid":0,"title":"文件管理","name":"vhost/index/file"},{"id":24,"pid":0,"title":"网站备份","name":"vhost/index/siteback"},{"id":25,"pid":24,"title":"新增网站备份","name":"vhost/index/webbackinc"},{"id":26,"pid":24,"title":"删除网站备份","name":"vhost/index/webbackdel"},{"id":27,"pid":0,"title":"FTP","name":"vhost/index/ftp"},{"id":28,"pid":27,"title":"FTP开关","name":"vhost/index/ftpstatus"},{"id":29,"pid":0,"title":"数据库","name":"vhost/index/sql"},{"id":30,"pid":29,"title":"数据库备份","name":"vhost/index/sqlback"},{"id":31,"pid":29,"title":"新增备份","name":"vhost/index/sqlbackinc"},{"id":32,"pid":29,"title":"删除备份","name":"vhost/index/sqlbackdel"},{"id":33,"pid":29,"title":"下载备份","name":"vhost/index/sqlbackdown"},{"id":34,"pid":29,"title":"备份还原","name":"vhost/index/sqlinputsql"},{"id":35,"pid":29,"title":"数据库导入","name":"vhost/index/sqlinputsqlfile"},{"id":36,"pid":0,"title":"SSL证书","name":"vhost/index/ssl"},{"id":37,"pid":36,"title":"强制HTTPS","name":"vhost/index/tohttps"},{"id":38,"pid":36,"title":"SSL配置","name":"vhost/index/sslset"},{"id":39,"pid":36,"title":"SSL关闭","name":"vhost/index/ssloff"},{"id":40,"pid":36,"title":"一键申请","name":"vhost/index/sslapply"},{"id":41,"pid":36,"title":"Lets证书申请","name":"vhost/index/sslapplylets"},{"id":42,"pid":36,"title":"证书续签","name":"vhost/index/sslrenewlets"},{"id":43,"pid":0,"title":"防盗链","name":"vhost/index/protection"},{"id":44,"pid":43,"title":"设置防盗链","name":"vhost/index/protectionset"},{"id":45,"pid":43,"title":"关闭防盗链","name":"vhost/index/protectionoff"},{"id":46,"pid":0,"title":"网站日志","name":"vhost/index/sitelog"},{"id":47,"pid":0,"title":"密码访问","name":"vhost/index/httpauth"},{"id":48,"pid":47,"title":"配置","name":"vhost/index/httpauthset"},{"id":49,"pid":47,"title":"关闭","name":"vhost/index/httpauthoff"},{"id":50,"pid":0,"title":"网站运行目录","name":"vhost/index/runpath"},{"id":51,"pid":50,"title":"目录配置","name":"vhost/index/setsiterunpath"},{"id":52,"pid":0,"title":"一键部署","name":"vhost/index/deployment"},{"id":53,"pid":52,"title":"一键部署到站点","name":"vhost/index/deploymentset"},{"id":54,"pid":1,"title":"防篡改","name":"vhost/index/proof"},{"id":55,"pid":54,"title":"防篡改开关","name":"vhost/index/proofstatus"},{"id":56,"pid":54,"title":"删除规则","name":"vhost/index/delproof"},{"id":57,"pid":54,"title":"添加规则","name":"vhost/index/incproof"},{"id":58,"pid":0,"title":"监控报表","name":"vhost/index/total"},{"id":59,"pid":0,"title":"防火墙","name":"vhost/index/waf"},{"id":60,"pid":59,"title":"waf开关","name":"vhost/index/wafstatus"},{"id":61,"pid":59,"title":"防cc控制","name":"vhost/index/setwafcc"},{"id":62,"pid":0,"title":"反向代理","name":"vhost/index/proxy"},{"id":63,"pid":62,"title":"反代删除","name":"vhost/index/proxydel"},{"id":64,"pid":0,"title":"php版本切换","name":"vhost/index/phpset"},{"id":65,"pid":36,"title":"Lets申请日志","name":"vhost/index/getfilelog"},{"id":66,"pid":0,"title":"一键部署(新版)","name":"vhost/index/deployment_new"},{"id":67,"pid":0,"title":"文件管理(FTP)","name":"vhost/index/file_ftp"},{"id":68,"pid":1,"title":"启用站点","name":"vhost/index/webstart"},{"id":69,"pid":1,"title":"停用站点","name":"vhost/index/webstop"},{"id":70,"pid":0,"title":"目录保护","name":"vhost/index/dirauth"},{"id":71,"pid":70,"title":"添加目录保护","name":"vhost/index/setdirauth"},{"id":72,"pid":70,"title":"删除目录保护","name":"vhost/index/deldirauth"}]}}
主机列表
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"id":101,"ware_id":12,"server_id":8,"user_id":1,"group_id":1,"username":"dmZjJs1","password":"1234567","salt":"tBaVYG","prevtime":1587446067,"logintime":1587446106,"loginip":"127.0.0.1","loginfailure":0,"createtime":"2020-04-21 12:49:13","updatetime":"2020-04-21 13:18:20","endtime":1595306952,"token":"2bee5417fb80b093b1c0950482fda45d","notice":null,"status":"normal","console":"/vhost/index/index","is_api":"hidden","type":"btpanel","vhost_bt":{"id":75,"vhost_id":101,"bt_id":252,"bt_name":"dmzjjs1.xxx.com","check_time":null,"ftp_id":79,"sql_id":70,"createtime":"2020-04-21 12:49:13","updatetime":"2020-04-21 12:49:13","site_size":"42.70","flow_size":"0.00","site_max":"200.00","flow_max":"200.00","ip_address":"127.0.0.1","domain_max":5,"server_os":"linux","default_analysis":"123456789.com","default_domain":"xxx.com","is_icp":0,"is_domain_white":0},"vhost_sql":{"id":70,"vhost_id":101,"sql_name":"dmZjJs1","sql_pass":"fqG0R6pAWK7o","sql_size":"0.00","sql_max":"200.00","createtime":"2020-04-21 12:49:13","updatetime":"2020-04-21 12:49:13"},"vhost_ftp":{"id":79,"ftp_name":"dmZjJs1","ftp_pass":"fqG0R6pAWK7o","vhost_id":101,"createtime":"2020-04-21 12:49:13","updatetime":"2020-04-21 12:49:13"},"ware":{"id":12,"wid":31337348,"group_id":1,"product_id":1,"sid":8,"name":"华为云121","describe":"测试商品","new_money":"100.00","renew_money":"100.00","price_money":"110.00","unit_money":"day","max_num":1,"min_num":1,"limits":0,"is_hot":0,"is_new":0,"is_renew":1,"is_top":1,"is_coupon":1,"is_presell":0,"is_promotion":1,"presell_desc":"","quota":0,"type":"btpanel","nature":null,"weight":0,"createtime":"2020-02-17 14:28:43","updatetime":"2020-05-02 21:49:48","starttime":"2020-04-25 12:33:34","endtime":"2020-05-09 12:33:37","promotion_money":"24","status":"normal","note":"","renew_time":0},"domain":{"id":106,"user_id":1,"vhost_id":101,"bt_id":252,"domain":"dmzjjs1.xxx.com","auth_status":"通过","status":"normal","is_dir":0,"dir_name":"/","is_default":1,"createtime":"2020-04-21 12:49:15","updatetime":"2020-04-21 12:49:15","notice":null}}
主机操作
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
type string 请求类型|info:主机信息,resetPass:重置密码,del:删除,open:开通,stop:停止,lock:锁定,edit:编辑,edntime:到期时间
username string 主机用户名
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"请求成功","time":"1588569563","data":{"id":128,"ware_id":17,"server_id":8,"user_id":1,"group_id":1,"username":"i9w8Ep1","password":"9mBzTq","salt":"buWAIR","prevtime":null,"logintime":1588568918,"loginip":"127.0.0.1","loginfailure":0,"createtime":"2020-04-29 10:43:03","updatetime":"2020-05-04 13:08:38","endtime":1590720182,"token":"bfdcfbb3c9ddfb7084f8ffb0b27d4e93","notice":null,"status":"normal","console":"/vhost/index/index","is_api":"hidden","type":"btpanel","vhost_bt":{"id":82,"vhost_id":128,"bt_id":265,"bt_name":"i9w8ep1.xxx.com","check_time":null,"ftp_id":0,"sql_id":77,"createtime":"2020-04-29 10:43:03","updatetime":"2020-05-04 12:49:42","site_size":"42.70","flow_size":"0.00","site_max":"300.00","flow_max":"300.00","ip_address":"192.168.0.1","domain_max":10,"server_os":"linux","default_analysis":"baidu.com","default_domain":"xxx.com","is_icp":0,"is_domain_white":0},"vhost_sql":{"id":77,"vhost_id":128,"sql_name":"i9w8Ep1","sql_pass":"708ZFTnAKIzk","sql_size":"0.00","sql_max":"300.00","createtime":"2020-04-29 10:43:03","updatetime":"2020-05-04 12:41:28"},"vhost_ftp":null,"ware":{"id":17,"wid":27414420,"group_id":1,"product_id":4,"sid":8,"name":"华为云121_不开通ftp","describe":"测试商品","new_money":"100.00","renew_money":"100.00","price_money":"110.00","unit_money":"month","max_num":30,"min_num":1,"limits":0,"is_hot":0,"is_new":0,"is_renew":1,"is_top":1,"is_coupon":1,"is_presell":0,"is_promotion":1,"presell_desc":"","quota":0,"type":"btpanel","nature":null,"weight":0,"createtime":"2020-04-29 10:31:55","updatetime":"2020-04-29 10:39:58","starttime":"2020-04-25 12:33:34","endtime":"2020-05-09 12:33:37","promotion_money":"24","status":"normal","note":"","renew_time":0},"domain":{"id":133,"user_id":1,"vhost_id":128,"bt_id":265,"domain":"i9w8ep1.xxx.com","auth_status":"通过","status":"normal","is_dir":0,"dir_name":"/","is_default":1,"createtime":"2020-04-29 10:43:05","updatetime":"2020-04-29 10:43:05","notice":null}}}
宝塔主机开通
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
ver string api接口版本号
domain string 绑定域名
username string 用户名
password string 密码
endtime date 到期时间,格式:2020-5-5
phpver string php版本,传递:00,52,53,54,55,56,70,71,72,73,74,75
sitemax float 站点大小,单位M
flowmax float 流量大小,单位M/月
sqlmax float 数据库大小,单位M
ftp int 开通FTP,0:不开通,1:开通
sql string 开通数据库,MySQL/SQLServer
group_id int 权限组ID
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"成功","time":"1588676576","data":{"btInfo":{"ftpStatus":true,"databaseUser":"admin00","databaseStatus":true,"ftpUser":"admin00","databasePass":"admin000","siteId":284,"siteStatus":true,"ftpPass":"admin000"},"vhostInfo":{"ware_id":0,"server_id":8,"user_id":0,"group_id":"1","username":"admin00","password":"b218InlSz8d-3nfieXK08figOvdudDxS0yknkwf3475dFp-tSQ","salt":"HmSBro","endtime":1589040000,"token":"f8e9e4c426d8018f3c97c413dbbd4cbb","status":"normal","console":"/vhost/index/index","type":"btpanel"},"vhostbt":{"webname":"{\"domain\":\"www.baidu10.com\",\"domainlist\":[],\"count\":0}","path":"/www/wwwroot/dTXMSW","type_id":"2","type":"PHP","version":"56","port":"80","ps":" Site:200 Sql:200 Flow:200","ftp":"true","ftp_username":"admin00","ftp_password":"admin000","sql":"MySQL","codeing":"utf8","datauser":"admin00","datapassword":"admin000","check_dir":1}}}
康乐主机开通
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
ver string api接口版本号
domain string 绑定域名
username string 用户名
password string 密码
product_name string 产品组名称,如使用产品组,下面的参数可不填
product_id int 产品组ID,如使用产品组,下面的参数可不填
e_type string 类型:cdn(如为cdn以下参数可不填)
templete string 语言:html,php,easypanel,all_in_one
subtemplete string php版本:php00,php52,php53,php54,php55,php56,php70,php71,php72,php73,php74,php75
e_ftp int 开通FTP,0:不开通,1:开通
e_sql string 开通数据库,false,mysql,sqlsrv
web_quota string 空间大小[M]
db_quota string 数据库大小[M]:[为0表示不开通数据库]
subdir_flag string 绑定子目录:0/1
subdir string 默认绑定子目录
max_subdir string 允许绑定子目录,限制个数[0表示不限]
e_domain string 域名绑定个数[-1表示无限]
ftp_connect string ftp连接数[0无限]
ftp_usl string ftp上传速度[0无限]
ftp_dsl string ftp下载速度[0无限]
htaccess string 其它选项: .htaccess支持
access string 自定义控制
speed_limit string 带宽限制[0无限] K/每秒
log_file string 日志独立
log_handle string 日志压缩
flow_limit string 流量限制G/每月
max_connect string 最大连接数[0无限]
max_worker string 工作数[0不限]
ignore_backup string 忽略备份
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"成功","time":"1588676576","data":{"btInfo":{"ftpStatus":true,"databaseUser":"admin00","databaseStatus":true,"ftpUser":"admin00","databasePass":"admin000","siteId":284,"siteStatus":true,"ftpPass":"admin000"},"vhostInfo":{"ware_id":0,"server_id":8,"user_id":0,"group_id":"1","username":"admin00","password":"b218InlSz8d-3nfieXK08figOvdudDxS0yknkwf3475dFp-tSQ","salt":"HmSBro","endtime":1589040000,"token":"f8e9e4c426d8018f3c97c413dbbd4cbb","status":"normal","console":"/vhost/index/index","type":"btpanel"},"vhostbt":{"webname":"{\"domain\":\"www.baidu10.com\",\"domainlist\":[],\"count\":0}","path":"/www/wwwroot/dTXMSW","type_id":"2","type":"PHP","version":"56","port":"80","ps":" Site:200 Sql:200 Flow:200","ftp":"true","ftp_username":"admin00","ftp_password":"admin000","sql":"MySQL","codeing":"utf8","datauser":"admin00","datapassword":"admin000","check_dir":1}}}
宝塔主机一键登录
Headers
参数
名称 类型 必选 描述
token string 服务器对外API通信密钥
username string 用户名
password string 密码
正文
参数
响应输出

                                                            

                                                        
返回参数
名称 类型 描述
code integer
msg string
data object 扩展数据返回
{"code":1,"msg":"登录成功","time":"1588768328","data":"\/vhost\/index\/index"}

商城接口


商品列表
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

手机短信接口


发送验证码
Headers
参数
名称 类型 必选 描述
mobile string 手机号
event string 事件名称
正文
参数
响应输出

                                                            

                                                        
返回参数
检测验证码
Headers
参数
名称 类型 必选 描述
mobile string 手机号
event string 事件名称
captcha string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数
设置错误信息
Headers
参数
名称 类型 必选 描述
error string 错误信息
正文
参数
响应输出

                                                            

                                                        
返回参数
获取错误信息
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

Token接口


检测Token是否过期
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
刷新Token
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数

会员接口


会员中心
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
会员登录
Headers
参数
名称 类型 必选 描述
account string 账号
password string 密码
正文
参数
响应输出

                                                            

                                                        
返回参数
手机验证码登录
Headers
参数
名称 类型 必选 描述
mobile string 手机号
captcha string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数
注册会员
Headers
参数
名称 类型 必选 描述
username string 用户名
password string 密码
email string 邮箱
mobile string 手机号
code string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数
注销登录
Headers
参数
正文
参数
响应输出

                                                            

                                                        
返回参数
修改会员个人信息
Headers
参数
名称 类型 必选 描述
avatar string 头像地址
username string 用户名
nickname string 昵称
bio string 个人简介
正文
参数
响应输出

                                                            

                                                        
返回参数
修改邮箱
Headers
参数
名称 类型 必选 描述
email string 邮箱
captcha string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数
修改手机号
Headers
参数
名称 类型 必选 描述
mobile string 手机号
captcha string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数
第三方登录
Headers
参数
名称 类型 必选 描述
platform string 平台名称
code string Code码
正文
参数
响应输出

                                                            

                                                        
返回参数
重置密码
Headers
参数
名称 类型 必选 描述
mobile string 手机号
newpassword string 新密码
captcha string 验证码
正文
参数
响应输出

                                                            

                                                        
返回参数

验证接口


检测邮箱
Headers
参数
名称 类型 必选 描述
email string 邮箱
id string 排除会员ID
正文
参数
响应输出

                                                            

                                                        
返回参数
检测用户名
Headers
参数
名称 类型 必选 描述
username string 用户名
id string 排除会员ID
正文
参数
响应输出

                                                            

                                                        
返回参数
检测手机
Headers
参数
名称 类型 必选 描述
mobile string 手机号
id string 排除会员ID
正文
参数
响应输出

                                                            

                                                        
返回参数
检测手机
Headers
参数
名称 类型 必选 描述
mobile string 手机号
正文
参数
响应输出

                                                            

                                                        
返回参数
检测邮箱
Headers
参数
名称 类型 必选 描述
mobile string 邮箱
正文
参数
响应输出

                                                            

                                                        
返回参数
检测手机验证码
Headers
参数
名称 类型 必选 描述
mobile string 手机号
captcha string 验证码
event string 事件
正文
参数
响应输出

                                                            

                                                        
返回参数
检测邮箱验证码
Headers
参数
名称 类型 必选 描述
email string 邮箱
captcha string 验证码
event string 事件
正文
参数
响应输出

                                                            

                                                        
返回参数