瀏覽代碼

记录拍照结果数据至数据库修复

844184169 7 月之前
父節點
當前提交
e9d07d8af1
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      TeamAAS-VM/Services/RemoteCommandService.cs

+ 2 - 2
TeamAAS-VM/Services/RemoteCommandService.cs

@@ -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, '_');