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 管理系统 版权所有 | 备案号:请替换为真实备案号';