diff --git a/plugins/beta/info.json b/plugins/beta/info.json index 83de6b84a..1ccec7589 100755 --- a/plugins/beta/info.json +++ b/plugins/beta/info.json @@ -11,5 +11,6 @@ "home":"http://www.bt.cn/bbs", "date":"2017-10-16", "default":false, - "display":0 + "display":0, + "pid":"2" } \ No newline at end of file diff --git a/plugins/btyw/info.json b/plugins/btyw/info.json index 70f1db2e6..b2aa9fe3e 100755 --- a/plugins/btyw/info.json +++ b/plugins/btyw/info.json @@ -14,5 +14,6 @@ "home":"https://www.bt.cn/yunwei", "date":"2017-10-18", "default":false, - "display":0 + "display":0, + "pid":"2" } \ No newline at end of file diff --git a/plugins/deployment/info.json b/plugins/deployment/info.json index b8261af1c..c03c2fc85 100755 --- a/plugins/deployment/info.json +++ b/plugins/deployment/info.json @@ -11,5 +11,6 @@ "home":"http://www.bt.cn/bbs", "date":"2017-07-26", "default":false, - "display":0 + "display":1, + "pid":"2" } \ No newline at end of file diff --git a/plugins/phpguard/info.json b/plugins/phpguard/info.json index d65321ce3..8930941e4 100755 --- a/plugins/phpguard/info.json +++ b/plugins/phpguard/info.json @@ -11,5 +11,6 @@ "home":"http://www.bt.cn/bbs", "date":"2017-10-16", "default":false, - "display":0 + "display":0, + "pid":"2" } \ No newline at end of file diff --git a/plugins/safelogin/info.json b/plugins/safelogin/info.json index bb881a2eb..3fe4c2b42 100755 --- a/plugins/safelogin/info.json +++ b/plugins/safelogin/info.json @@ -11,5 +11,6 @@ "home":"http://www.bt.cn/bbs", "date":"2017-11-24", "default":false, - "display":0 + "display":0, + "pid":"3" } \ No newline at end of file diff --git a/plugins/score/info.json b/plugins/score/info.json index 59fda758e..68b610495 100755 --- a/plugins/score/info.json +++ b/plugins/score/info.json @@ -11,5 +11,6 @@ "home":"http://www.bt.cn/bbs", "date":"2017-10-16", "default":false, - "display":0 + "display":0, + "pid":"2" } \ No newline at end of file diff --git a/plugins/vpn/info.json b/plugins/vpn/info.json index 96884603d..4795da8d7 100755 --- a/plugins/vpn/info.json +++ b/plugins/vpn/info.json @@ -4,12 +4,13 @@ "name":"VPN", "type":"其他插件", "ps":"科学上网", - "versions":"1.3", + "versions":"0.1", "shell":"install.sh", "checks":"/www/server/panel/plugin/safelogin", - "author":"宝塔", + "author":"midoks", "home":"http://www.bt.cn/bbs", "date":"2017-11-24", - "default":false, - "display":0 + "default":true, + "display":1, + "pid": "3" } \ No newline at end of file diff --git a/static/js/soft.js b/static/js/soft.js index fdfe93643..e585fa90b 100755 --- a/static/js/soft.js +++ b/static/js/soft.js @@ -192,11 +192,6 @@ function service(name, status) { } -//更新软件列表 -function updateSoftList() { - $.get('/plugins/list?action=getCloudPlugin', function(rdata) {}); -} - //php上传限制 function phpUploadLimit(version, max) { var LimitCon = '
MB
'; @@ -1785,8 +1780,8 @@ function GetSList(isdisplay) { $("#softPage").html(rdata.page); $("#softPage .Pcount").css({ "position": "absolute", "left": "0" }) - $(".task").text(rdata.data[rdata.length - 1]); - for (var i = 0; i < rdata.data.length - 1; i++) { + $(".task").text(rdata.data[rdata.data.length - 1]); + for (var i = 0; i < rdata.data.length; i++) { var len = rdata.data[i].versions.length; var version_info = ''; var version = ''; @@ -1947,215 +1942,6 @@ function SoftUpdate(name, version, update) { }); }, msg); } -//续费 -function Renewinstall(pluginName, pid, an) { - if (an === undefined) { - var txt = "开通"; - } else { - var txt = "续费"; - } - var payhtml = '注:如需购买多台永久授权,请登录宝塔官网购买。去宝塔官网
\ -暂无代金券
"); - } - }) -} - - -function getRsCodePro(price, sprice, cycle) { - $(".sale-price").text(price); - if (price == sprice) { - $(".cost-price").text(sprice + '元').hide(); - } else { - $(".cost-price").text(sprice + '元').show(); - } - $(".pay-wx").html('加载中,请稍后'); - $(".libPay").append(''); - $.post('/auth?action=create_order', { cycle: cycle }, function(rdata) { - $(".payloadingmask").remove(); - if (rdata.status === false) { - layer.msg(rdata.msg, { icon: 2 }); - return; - } - $(".pay-wx").html(''); - $(".pay-wx").qrcode(rdata.msg); - clearInterval(wxpayTimeId); - wxpayTimeId = setInterval(function() { - $.post('/auth?action=get_re_order_status', function(rdata) { - if (rdata.status) { - layer.closeAll(); - layer.msg("支付成功!专业版升级中,请勿操作!", { icon: 16, time: 0, shade: [0.3, "#000"] }); - clearInterval(wxpayTimeId); - $.get("/system?action=UpdatePro", function(rr) { - show_upVip(); - }).error(function() { - show_upVip(); - }); - return; - } - }) - }, 3000); - - }); -} - -function anTo(pluginName, pid) { - layer.closeAll(); - Renewinstall(pluginName, pid, 1); -} - //独立安装 function oneInstall(name, version) { @@ -2555,6 +2341,4 @@ $(function() { if (window.document.location.pathname == '/soft') { setInterval(function() { GetSList(true); }, 5000); } -}); - -updateSoftList(); \ No newline at end of file +}); \ No newline at end of file diff --git a/templates/default/soft.html b/templates/default/soft.html index d6daa3901..f101d52f8 100755 --- a/templates/default/soft.html +++ b/templates/default/soft.html @@ -22,7 +22,7 @@ - +