|
@@ -86,9 +86,11 @@ if ($action === 'is_need_check_code') { |
|
|
if (!$dsql->IsTable("#@__ai")) { |
|
|
if (!$dsql->IsTable("#@__ai")) { |
|
|
$unQueryVer[] = "6.5.0"; |
|
|
$unQueryVer[] = "6.5.0"; |
|
|
} |
|
|
} |
|
|
$row = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__ai_prompt` WHERE pname = 'body_edit'"); |
|
|
|
|
|
if (isset($row['dd']) && $row['dd'] == 0) { |
|
|
|
|
|
$unQueryVer[] = "6.5.2"; |
|
|
|
|
|
|
|
|
if ($dsql->IsTable("#@__ai_prompt")) { |
|
|
|
|
|
$row = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__ai_prompt` WHERE pname = 'body_edit'"); |
|
|
|
|
|
if (isset($row['dd']) && $row['dd'] == 0) { |
|
|
|
|
|
$unQueryVer[] = "6.5.2"; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if (count($unQueryVer) > 0) { |
|
|
if (count($unQueryVer) > 0) { |
|
|
$upsqls = GetUpdateSQL(); |
|
|
$upsqls = GetUpdateSQL(); |
|
|