diff --git a/plugins/cloudreve/index.py b/plugins/cloudreve/index.py index 0197f519d..a312a2028 100755 --- a/plugins/cloudreve/index.py +++ b/plugins/cloudreve/index.py @@ -240,12 +240,6 @@ def pSqliteDb(dbname='databases'): conn = mw.M(dbname).dbPos(pos_file, name) return conn -def clearCopyTask(): - conn = pSqliteDb('x_task_items') - conn.where('key=?', ('copy',)).setField('persist_data','[]') - restart() - return mw.returnJson(True, '清空成功并重启服务!') - def getCloudrevePort(): file = getConf() content = mw.readFile(file) @@ -288,8 +282,6 @@ if __name__ == "__main__": print(configTpl()) elif func == 'read_config_tpl': print(readConfigTpl()) - elif func == 'clear_copy_task': - print(clearCopyTask()) elif func == 'home_page': print(homePage()) else: diff --git a/plugins/cloudreve/js/cloudreve.js b/plugins/cloudreve/js/cloudreve.js index c956ca952..5f20fc88a 100755 --- a/plugins/cloudreve/js/cloudreve.js +++ b/plugins/cloudreve/js/cloudreve.js @@ -53,14 +53,6 @@ function alistPostCallbak(method, version, args,callback){ },'json'); } -function clearTaskCopy(){ - layer.confirm('您真的要清空复制任务吗?', { icon: 3, closeBtn: 2 }, function() { - alistPost('clear_copy_task', '', {}, function(data){ - var rdata = $.parseJSON(data.data); - showMsg(rdata.msg, function(){},{ icon: rdata.status ? 1 : 2 }); - }); - }); -} function commonHomePage(){ alistPost('home_page', '', {}, function(data){ @@ -73,7 +65,6 @@ function alistCommonFunc(){ var con = ''; con += '
\ \ - \
'; $(".soft-man-con").html(con); @@ -83,8 +74,7 @@ function alistReadme(){ var readme = '