浏览代码

Update api.php

tags/6.5.6
tianya 4 天前
父节点
当前提交
1628c7bf5b
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      src/admin/api.php

+ 5
- 3
src/admin/api.php 查看文件

@@ -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();


正在加载...
取消
保存