Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
NS100
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a0ef209a
由
LN
编写于
2026-01-22 09:53:50 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
数据源匹配后重新生成reelID
1 个父辈
ed886837
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
3 行删除
BLL/Extension/Item_General.cs
BLL/ExtraFileData.cs
BLL/Extension/Item_General.cs
查看文件 @
a0ef209
...
@@ -226,6 +226,7 @@ namespace BLL
...
@@ -226,6 +226,7 @@ namespace BLL
{
{
key
.
Add
(
config
.
ReelIDKeyWord
,
Reelidstr
);
key
.
Add
(
config
.
ReelIDKeyWord
,
Reelidstr
);
}
}
LogNet
.
log
.
Info
(
$
"重设{config.ReelIDKeyWord}={Reelidstr}"
);
}
}
...
@@ -276,7 +277,25 @@ namespace BLL
...
@@ -276,7 +277,25 @@ namespace BLL
key
=
ExtraFileData
.
MatchFileData
(
key
,
out
bool
findOk
);
key
=
ExtraFileData
.
MatchFileData
(
key
,
out
bool
findOk
);
bool
hasDataSource
=
(!
string
.
IsNullOrEmpty
(
Config
.
DataSource_DataKey
))
||
bool
hasDataSource
=
(!
string
.
IsNullOrEmpty
(
Config
.
DataSource_DataKey
))
||
(
Config
.
DataSource_DataKey_Others
.
Val
!=
null
&&
Config
.
DataSource_DataKey_Others
.
Val
.
Length
>
0
);
(
Config
.
DataSource_DataKey_Others
.
Val
!=
null
&&
Config
.
DataSource_DataKey_Others
.
Val
.
Length
>
0
);
if
(
findOk
)
{
// 添加或替换自增ID
if
(!
string
.
IsNullOrEmpty
(
config
.
ReelIDKeyWord
)
&&
isdisplay
)
{
var
Reelidstr
=
GetReelid
();
if
(
key
.
ContainsKey
(
config
.
ReelIDKeyWord
))
{
key
[
config
.
ReelIDKeyWord
]
=
Reelidstr
;
}
else
{
key
.
Add
(
config
.
ReelIDKeyWord
,
Reelidstr
);
}
LogNet
.
log
.
Info
(
$
"匹配到外部数据源,重设{config.ReelIDKeyWord}={Reelidstr}"
);
}
}
if
(
hasDataSource
&&
ExtraFileData
.
hasFileData
()
&&
(!
findOk
)
&&
Config
.
DataSource_CanReMatch
)
if
(
hasDataSource
&&
ExtraFileData
.
hasFileData
()
&&
(!
findOk
)
&&
Config
.
DataSource_CanReMatch
)
{
{
CheckText
(
"ReMatch_Show"
);
CheckText
(
"ReMatch_Show"
);
...
...
BLL/ExtraFileData.cs
查看文件 @
a0ef209
...
@@ -471,11 +471,18 @@ namespace BLL
...
@@ -471,11 +471,18 @@ namespace BLL
private
static
Dictionary
<
string
,
string
>
UpdateData
(
Dictionary
<
string
,
string
>
key
,
Dictionary
<
string
,
string
>
findDataMap
,
Dictionary
<
string
,
string
>
otherKeys
)
private
static
Dictionary
<
string
,
string
>
UpdateData
(
Dictionary
<
string
,
string
>
key
,
Dictionary
<
string
,
string
>
findDataMap
,
Dictionary
<
string
,
string
>
otherKeys
)
{
{
Dictionary
<
string
,
string
>
titleKey
=
new
Dictionary
<
string
,
string
>();
Dictionary
<
string
,
List
<
string
>>
titleKey
=
new
Dictionary
<
string
,
List
<
string
>
>();
foreach
(
string
otherKey
in
otherKeys
.
Keys
)
foreach
(
string
otherKey
in
otherKeys
.
Keys
)
{
{
string
value
=
otherKeys
[
otherKey
];
string
value
=
otherKeys
[
otherKey
];
titleKey
[
value
]
=
otherKey
;
List
<
string
>
mcodes
=
new
List
<
string
>();
titleKey
.
TryGetValue
(
value
,
out
mcodes
);
if
(
mcodes
==
null
)
{
mcodes
=
new
List
<
string
>();
}
mcodes
.
Add
(
otherKey
);
titleKey
[
value
]
=
mcodes
;
}
}
...
@@ -485,9 +492,11 @@ namespace BLL
...
@@ -485,9 +492,11 @@ namespace BLL
{
{
if
(
titleKey
.
ContainsKey
(
d
.
Key
))
if
(
titleKey
.
ContainsKey
(
d
.
Key
))
{
{
string
softKey
=
titleKey
[
d
.
Key
];
foreach
(
string
softKey
in
titleKey
[
d
.
Key
])
{
key
[
softKey
]
=
d
.
Value
;
key
[
softKey
]
=
d
.
Value
;
}
}
}
else
else
{
{
key
[
d
.
Key
]
=
d
.
Value
;
key
[
d
.
Key
]
=
d
.
Value
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论