|
|
@@ -2072,11 +2072,15 @@ namespace TeamAAS_VP.Services
|
|
|
}
|
|
|
//获取当前的产品SN
|
|
|
string productSN = _productService.CurrentProductCode;
|
|
|
- //如果产品SN存在非法字符,则替换为下划线
|
|
|
- foreach (char c in System.IO.Path.GetInvalidFileNameChars())
|
|
|
+ if (!string.IsNullOrEmpty(productSN))
|
|
|
{
|
|
|
- productSN = productSN.Replace(c, '_');
|
|
|
+ //如果产品SN存在非法字符,则替换为下划线
|
|
|
+ foreach (char c in System.IO.Path.GetInvalidFileNameChars())
|
|
|
+ {
|
|
|
+ productSN = productSN.Replace(c, '_');
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//当前用户
|
|
|
string currentUser = _systemDatabaseService.GetCurrentUser()?.UserName;
|
|
|
|