From f8dfd0492bf4824672ab4580e9d9b06656503e2c Mon Sep 17 00:00:00 2001 From: nanguaboss <602995148@qq.com> Date: Mon, 10 Aug 2026 00:33:05 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.46:=20=E7=A1=AC=E6=95=B0=E6=8D=AE=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9C=AA=E9=80=89=E6=9D=A5=E6=BA=90=E6=97=B6=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E7=A9=BA=E7=99=BD,=E4=B8=8D=E5=86=8D=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=89=8B=E5=8A=A8=E5=BD=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/fragment/hard_add.php | 5 +---- static/js/config.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/api/fragment/hard_add.php b/api/fragment/hard_add.php index af45bbe..37809ba 100644 --- a/api/fragment/hard_add.php +++ b/api/fragment/hard_add.php @@ -30,9 +30,6 @@ $platform = trim($_POST['platform'] ?? ''); $accountId = trim($_POST['account_id'] ?? ''); $profileUrl = trim($_POST['profile_url'] ?? ''); $sourceChannel = trim($_POST['source_channel'] ?? ''); -if ($sourceChannel === '') { - $sourceChannel = '手动录入'; -} // 硬数据标准校验: // 企业/产品/需求 → 企业名称必填;人员 → 手机、邮箱至少填一个;混合 → 至少有一项内容 @@ -96,7 +93,7 @@ $pdo->prepare( $personName !== '' ? $personName : null, $phone !== '' ? $phone : null, $email !== '' ? $email : null, - $sourceChannel, + $sourceChannel !== '' ? $sourceChannel : null, // 未选择来源保持空白 $_SESSION['username'] ?? null, $extra ? json_encode($extra, JSON_UNESCAPED_UNICODE) : null, ]); diff --git a/static/js/config.js b/static/js/config.js index 81829f5..d8c2053 100644 --- a/static/js/config.js +++ b/static/js/config.js @@ -5,7 +5,7 @@ var BASE_URL = '/api/'; var PAGE_SIZE = 20; /** 系统版本号(logo旁展示):修改代码后运行 tools/bump_version.php 自动递增 */ -var APP_VERSION = 'v1.0.45'; +var APP_VERSION = 'v1.0.46'; /** 页脚版权/备案信息(在 config.js 中修改) */ var FOOTER_TEXT = '© 2026 SuperLink 管理系统 版权所有 | 备案号:请替换为真实备案号';