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