From 9d01b774b602b91be9f4ffa3501d2e8eb6b8d8a4 Mon Sep 17 00:00:00 2001 From: tianya Date: Tue, 25 Jul 2023 00:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E6=96=87=E6=A3=80=E7=B4=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/inc/inc_batchup.php | 5 +++++ src/install/update.txt | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/admin/inc/inc_batchup.php b/src/admin/inc/inc_batchup.php index d8558f95..4d88a27a 100644 --- a/src/admin/inc/inc_batchup.php +++ b/src/admin/inc/inc_batchup.php @@ -93,6 +93,11 @@ function DelArc($aid, $type = 'ON', $onlyfile = FALSE, $recycle = 0) $filenameh = DEDEDATA."/textdata/".(ceil($aid / 5000))."/{$aid}-".substr(md5($cfg_cookie_encode), 0, 16).".txt"; if (@is_file($filenameh)) @unlink($filenameh); } + if ($dsql->IsTable('#@__search_sync')) { + $intime = time(); + $insql = "INSERT INTO `#@__search_sync` (`aid`, `add_at`) VALUES ({$aid}, $intime)"; + $dsql->ExecuteNoneQuery($insql); + } if (empty($arcRow['money'])) $arcRow['money'] = 0; if (empty($arcRow['ismake'])) $arcRow['ismake'] = 1; if (empty($arcRow['arcrank'])) $arcRow['arcrank'] = 0; diff --git a/src/install/update.txt b/src/install/update.txt index 4bce295d..beb011c3 100644 --- a/src/install/update.txt +++ b/src/install/update.txt @@ -135,4 +135,12 @@ DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_port'; DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_user'; DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_pwd'; DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_root'; -DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_mkdir'; \ No newline at end of file +DELETE FROM `#@__sysconfig` WHERE `varname` = 'cfg_ftp_mkdir'; +CREATE TABLE `#@__search_sync` ( + `id` int unsigned NOT NULL auto_increment, + `aid` int NULL DEFAULT NULL, + `sync_status` tinyint NULL DEFAULT 0, + `add_at` int NULL DEFAULT NULL, + `update_at` int NULL DEFAULT NULL, + PRIMARY KEY (`id`) +) TYPE = MyISAM; \ No newline at end of file