eli-video-interview 1.6.7 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,9 @@ import { Typography } from 'fbm-ui';
15
15
  import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
16
  // 报告头部与"作弊风险"章节共用的风险标签名(命中其一即视为存在面试过程风险)
17
17
  var RISK_TAG_NAMES = ['疑似读稿', '疑似作弊', '面试切屏'];
18
+ // 后端打的标签名是「疑似读背稿」,报告设计文案用「疑似读稿」,按同一项处理
19
+ var TAG_NAME_ALIASES = { 疑似读背稿: '疑似读稿' };
20
+ var normalizeTagName = function (name) { return (name && TAG_NAME_ALIASES[name]) || name || ''; };
18
21
  // 作弊检测详情表(仅命中风险时展示;"有风险"文案取自蓝湖,未命中的行第三列统一"暂无风险")
19
22
  var CHEAT_ROWS = [
20
23
  {
@@ -81,8 +84,8 @@ var CheatRisk = function () {
81
84
  var _b = reportResult.screenSwitchCount, screenSwitchCount = _b === void 0 ? 0 : _b, _c = reportResult.candidateInfo, candidateInfo = _c === void 0 ? {} : _c, _d = reportResult.tags, reportTags = _d === void 0 ? [] : _d;
82
85
  // 与报告头部同源取标签:候选人信息卡标签优先,兜底报告级标签
83
86
  var tagList = ((_a = candidateInfo === null || candidateInfo === void 0 ? void 0 : candidateInfo.tags) === null || _a === void 0 ? void 0 : _a.length) ? candidateInfo.tags : reportTags;
84
- var hitNames = new Set((tagList || []).map(function (t) { return t === null || t === void 0 ? void 0 : t.name; }).filter(function (n) { return Boolean(n); }));
85
- var riskTags = (tagList || []).filter(function (t) { return RISK_TAG_NAMES.includes(t === null || t === void 0 ? void 0 : t.name); });
87
+ var hitNames = new Set((tagList || []).map(function (t) { return normalizeTagName(t === null || t === void 0 ? void 0 : t.name); }).filter(function (n) { return Boolean(n); }));
88
+ var riskTags = (tagList || []).filter(function (t) { return RISK_TAG_NAMES.includes(normalizeTagName(t === null || t === void 0 ? void 0 : t.name)); });
86
89
  // 命中风险标签 或 旧字段(isCheat/切屏次数) 均视为有风险
87
90
  var hasRisk = riskTags.length > 0 || !!(interviewCheat === null || interviewCheat === void 0 ? void 0 : interviewCheat.isCheat) || screenSwitchCount > 0;
88
91
  var fallbackInfo = (interviewCheat === null || interviewCheat === void 0 ? void 0 : interviewCheat.info) || '面试过程中可能存在作弊行为,请结合面试视频核对。';
@@ -17,6 +17,9 @@ var fbm_ui_1 = require("fbm-ui");
17
17
  var global_store_1 = require("../../../../store/ai-report/global-store");
18
18
  // 报告头部与"作弊风险"章节共用的风险标签名(命中其一即视为存在面试过程风险)
19
19
  var RISK_TAG_NAMES = ['疑似读稿', '疑似作弊', '面试切屏'];
20
+ // 后端打的标签名是「疑似读背稿」,报告设计文案用「疑似读稿」,按同一项处理
21
+ var TAG_NAME_ALIASES = { 疑似读背稿: '疑似读稿' };
22
+ var normalizeTagName = function (name) { return (name && TAG_NAME_ALIASES[name]) || name || ''; };
20
23
  // 作弊检测详情表(仅命中风险时展示;"有风险"文案取自蓝湖,未命中的行第三列统一"暂无风险")
21
24
  var CHEAT_ROWS = [
22
25
  {
@@ -83,8 +86,8 @@ var CheatRisk = function () {
83
86
  var _b = reportResult.screenSwitchCount, screenSwitchCount = _b === void 0 ? 0 : _b, _c = reportResult.candidateInfo, candidateInfo = _c === void 0 ? {} : _c, _d = reportResult.tags, reportTags = _d === void 0 ? [] : _d;
84
87
  // 与报告头部同源取标签:候选人信息卡标签优先,兜底报告级标签
85
88
  var tagList = ((_a = candidateInfo === null || candidateInfo === void 0 ? void 0 : candidateInfo.tags) === null || _a === void 0 ? void 0 : _a.length) ? candidateInfo.tags : reportTags;
86
- var hitNames = new Set((tagList || []).map(function (t) { return t === null || t === void 0 ? void 0 : t.name; }).filter(function (n) { return Boolean(n); }));
87
- var riskTags = (tagList || []).filter(function (t) { return RISK_TAG_NAMES.includes(t === null || t === void 0 ? void 0 : t.name); });
89
+ var hitNames = new Set((tagList || []).map(function (t) { return normalizeTagName(t === null || t === void 0 ? void 0 : t.name); }).filter(function (n) { return Boolean(n); }));
90
+ var riskTags = (tagList || []).filter(function (t) { return RISK_TAG_NAMES.includes(normalizeTagName(t === null || t === void 0 ? void 0 : t.name)); });
88
91
  // 命中风险标签 或 旧字段(isCheat/切屏次数) 均视为有风险
89
92
  var hasRisk = riskTags.length > 0 || !!(interviewCheat === null || interviewCheat === void 0 ? void 0 : interviewCheat.isCheat) || screenSwitchCount > 0;
90
93
  var fallbackInfo = (interviewCheat === null || interviewCheat === void 0 ? void 0 : interviewCheat.info) || '面试过程中可能存在作弊行为,请结合面试视频核对。';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",