From 2959ebb82d574f1387c0ca3c721410b342944814 Mon Sep 17 00:00:00 2001 From: tianya Date: Thu, 14 Apr 2022 19:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/admin/ad_add.php | 2 +- src/admin/js/main.js | 6 +++++- src/admin/sys_data.php | 6 +++--- src/admin/templets/sys_data.htm | 24 +++++------------------ src/system/helpers/channelunit.helper.php | 14 +++++++------ 6 files changed, 23 insertions(+), 30 deletions(-) diff --git a/.gitignore b/.gitignore index 068a841d..7489c6d2 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ src/static/js/*.js src/apps/special/*.html src/static/flink/*.png src/static/rss/*.xml +src/a/baidunews.xml diff --git a/src/admin/ad_add.php b/src/admin/ad_add.php index 112ea0a7..6caddad1 100644 --- a/src/admin/ad_add.php +++ b/src/admin/ad_add.php @@ -16,7 +16,7 @@ if ($dopost == "save") { CheckCSRF(); //timeset tagname typeid normbody expbody $tagname = trim($tagname); - $row = $dsql->GetOne("SELECT typeid FROM #@__myad WHERE typeid='$typeid' AND tagname LIKE '$tagname'"); + $row = $dsql->GetOne("SELECT typeid FROM `#@__myad` WHERE typeid='$typeid' AND tagname LIKE '$tagname'"); if (is_array($row)) { ShowMsg("在相同栏目下已经存在同名的标记", "-1"); exit(); diff --git a/src/admin/js/main.js b/src/admin/js/main.js index f4b8d605..eee1c0e0 100644 --- a/src/admin/js/main.js +++ b/src/admin/js/main.js @@ -531,6 +531,7 @@ function guid() { // https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax function ShowMsg(content, ...args) { title = "系统提示"; + size = ""; if (typeof content == "undefined") content = ""; modalID = guid(); var footer = ``; @@ -543,6 +544,9 @@ function ShowMsg(content, ...args) { if (typeof args[0].footer !== 'undefined' && args[0].footer != "") { footer = args[0].footer; } + if (typeof args[0].size !== 'undefined' && args[0].size != "") { + size = args[0].size; + } if (typeof args[0].noClose !== 'undefined' && args[0].noClose == true) { noClose = true; } @@ -550,7 +554,7 @@ function ShowMsg(content, ...args) { footer = footer.replaceAll("~modalID~", modalID); content = content.replaceAll("~modalID~", modalID); var modal = `