From 828616811d3cfc9ac4fc981f6b8c1d913addacd4 Mon Sep 17 00:00:00 2001
From: tianya <yanghuxiao@vip.qq.com>
Date: Sun, 25 Jun 2023 21:35:20 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E4=B8=9A=E7=89=88=E5=85=A8=E6=96=87?=
 =?UTF-8?q?=E6=A3=80=E7=B4=A2=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/system/helpers/archive.helper.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/system/helpers/archive.helper.php b/src/system/helpers/archive.helper.php
index c55b46fc..94f0fcf0 100755
--- a/src/system/helpers/archive.helper.php
+++ b/src/system/helpers/archive.helper.php
@@ -155,8 +155,12 @@ if (!function_exists('UpIndexKey')) {
     {
         global $dsql, $typeid2;
         if (empty($typeid2)) $typeid2 = 0;
-        $addtime = time();
-        $query = "UPDATE `#@__arctiny` SET `arcrank`='$arcrank', `typeid`='$typeid', `typeid2`='$typeid2', `sortrank`='$sortrank' WHERE id = '$id' ";
+        $indexedsql = "";
+        //商业全文检索组件索引
+        if (TableHasField("#@__arctiny", "indexed")) {
+            $indexedsql = ",`indexed`=2 ";
+        }
+        $query = "UPDATE `#@__arctiny` SET `arcrank`='$arcrank', `typeid`='$typeid', `typeid2`='$typeid2', `sortrank`='$sortrank'{$indexedsql} WHERE id = '$id' ";
         $dsql->ExecuteNoneQuery($query);
         //处理修改后的tag
         if ($tags != '') {