Browse Source

商业版全文检索功能优化

tags/6.2.10
tianya 1 year ago
parent
commit
828616811d
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/system/helpers/archive.helper.php

+ 6
- 2
src/system/helpers/archive.helper.php View File

@@ -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 != '') {


Loading…
Cancel
Save