This commit is contained in:
flucout 2023-12-30 10:20:44 +08:00
parent f81cd68e80
commit 79fddbb943
5 changed files with 484 additions and 460 deletions

Binary file not shown.

View File

@ -49,6 +49,7 @@ Route::group('api', function () {
Route::get('/index/get_win_date', 'api/get_win_date'); Route::get('/index/get_win_date', 'api/get_win_date');
Route::get('/panel/is_pro', 'api/is_pro'); Route::get('/panel/is_pro', 'api/is_pro');
Route::get('/getIpAddress', 'api/get_ip_address'); Route::get('/getIpAddress', 'api/get_ip_address');
Route::get('/GetAD', 'api/return_empty');
Route::post('/Auth/GetAuthToken', 'api/get_auth_token'); Route::post('/Auth/GetAuthToken', 'api/get_auth_token');
Route::post('/Auth/GetBindCode', 'api/return_error'); Route::post('/Auth/GetBindCode', 'api/return_error');
Route::post('/Auth/GetSSLList', 'api/get_ssl_list'); Route::post('/Auth/GetSSLList', 'api/get_ssl_list');

View File

@ -11,8 +11,8 @@ if("undefined" != typeof bt && bt.hasOwnProperty("show_confirm")){
shadeClose: true, shadeClose: true,
btn: [lan['public'].ok, lan['public'].cancel], btn: [lan['public'].ok, lan['public'].cancel],
content: "<div class='bt-form webDelete pd20'>\ content: "<div class='bt-form webDelete pd20'>\
<p style='font-size:13px;word-break: break-all;margin-bottom: 5px;'>" + msg + "</p>" + (error || '') + "\ <p style='font-size:13px;word-break: break-all;margin-bottom: 5px;'>" + msg + "</p>" + (error || '') + "\
</div>", </div>",
yes: function (index, layero) { yes: function (index, layero) {
layer.close(index); layer.close(index);
if (callback) callback(); if (callback) callback();
@ -29,8 +29,8 @@ if("undefined" != typeof bt && bt.hasOwnProperty("prompt_confirm")){
closeBtn: 2, closeBtn: 2,
btn: ['确认', '取消'], btn: ['确认', '取消'],
content: "<div class='bt-form promptDelete pd20'>\ content: "<div class='bt-form promptDelete pd20'>\
<p>" + msg + "</p>\ <p>" + msg + "</p>\
</div>", </div>",
yes: function (layers, index) { yes: function (layers, index) {
layer.close(layers) layer.close(layers)
if (callback) callback() if (callback) callback()
@ -40,28 +40,53 @@ if("undefined" != typeof bt && bt.hasOwnProperty("prompt_confirm")){
} }
if("undefined" != typeof bt && bt.hasOwnProperty("compute_confirm")){ if("undefined" != typeof bt && bt.hasOwnProperty("compute_confirm")){
bt.compute_confirm = function (config, callback) { bt.compute_confirm = function (config, callback) {
layer.open({ layer.open({
type: 1, type: 1,
title: config.title, title: config.title,
area: '430px', area: '430px',
closeBtn: 2, closeBtn: 2,
shadeClose: true, shadeClose: true,
btn: [lan['public'].ok, lan['public'].cancel], btn: [lan['public'].ok, lan['public'].cancel],
content: content:
'<div class="bt-form hint_confirm pd30">\ '<div class="bt-form hint_confirm pd30">\
<div class="hint_title">\ <div class="hint_title">\
<i class="hint-confirm-icon"></i>\ <i class="hint-confirm-icon"></i>\
<div class="hint_con">' + <div class="hint_con">' +
config.msg + config.msg +
'</div>\ '</div>\
</div>\ </div>\
</div>', </div>',
yes: function (layers, index) { yes: function (layers, index) {
layer.close(layers) layer.close(layers)
if (callback) callback() if (callback) callback()
} }
}); });
} }
}
if("undefined" != typeof bt && bt.hasOwnProperty("input_confirm")){
bt.input_confirm = function (config, callback) {
layer.open({
type: 1,
title: config.title,
area: '430px',
closeBtn: 2,
shadeClose: true,
btn: [lan['public'].ok, lan['public'].cancel],
content:
'<div class="bt-form hint_confirm pd30">\
<div class="hint_title">\
<i class="hint-confirm-icon"></i>\
<div class="hint_con">' +
config.msg +
'</div>\
</div>\
</div>',
yes: function (layers, index) {
layer.close(layers);
if (callback) callback();
},
});
}
} }
if("undefined" != typeof database && database.hasOwnProperty("del_database")){ if("undefined" != typeof database && database.hasOwnProperty("del_database")){
database.del_database = function (wid, dbname, obj, callback) { database.del_database = function (wid, dbname, obj, callback) {
@ -431,24 +456,24 @@ if("undefined" != typeof bt && bt.hasOwnProperty("firewall") && bt.firewall.hasO
} }
} }
function SafeMessage(j, h, g, f) { function SafeMessage(j, h, g, f) {
if(f == undefined) { if(f == undefined) {
f = "" f = ""
} }
var mess = layer.open({ var mess = layer.open({
type: 1, type: 1,
title: j, title: j,
area: "350px", area: "350px",
closeBtn: 2, closeBtn: 2,
shadeClose: true, shadeClose: true,
content: "<div class='bt-form webDelete pd20 pb70'><p>" + h + "</p>" + f + "<div class='bt-form-submit-btn'><button type='button' class='btn btn-danger btn-sm bt-cancel'>"+lan.public.cancel+"</button> <button type='button' id='toSubmit' class='btn btn-success btn-sm' >"+lan.public.ok+"</button></div></div>" content: "<div class='bt-form webDelete pd20 pb70'><p>" + h + "</p>" + f + "<div class='bt-form-submit-btn'><button type='button' class='btn btn-danger btn-sm bt-cancel'>"+lan.public.cancel+"</button> <button type='button' id='toSubmit' class='btn btn-success btn-sm' >"+lan.public.ok+"</button></div></div>"
}); });
$(".bt-cancel").click(function(){ $(".bt-cancel").click(function(){
layer.close(mess); layer.close(mess);
}); });
$("#toSubmit").click(function() { $("#toSubmit").click(function() {
layer.close(mess); layer.close(mess);
g(); g();
}) })
} }
$(document).ready(function () { $(document).ready(function () {
if($('#updata_pro_info').length>0){ if($('#updata_pro_info').length>0){

View File

@ -57,8 +57,6 @@
__set_pyenv方法内temp_file = public.readFile(filename)这行代码下面加上 __set_pyenv方法内temp_file = public.readFile(filename)这行代码下面加上
```python ```python
temp_file = temp_file.replace('wget -O Tpublic.sh', '#wget -O Tpublic.sh')
temp_file = temp_file.replace('\cp -rpa Tpublic.sh', '#\cp -rpa Tpublic.sh')
temp_file = temp_file.replace('http://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh') temp_file = temp_file.replace('http://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh')
temp_file = temp_file.replace('https://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh') temp_file = temp_file.replace('https://download.bt.cn/install/public.sh', 'http://www.example.com/install/public.sh')
``` ```