Browse Source

修复离线模式时,没有FVP键值导致的出错。

JeffWang 3 years ago
parent
commit
35ca541d14
1 changed files with 2 additions and 1 deletions
  1. 2 1
      FactoryTool_CShare/Views/OperationPanel.cs

+ 2 - 1
FactoryTool_CShare/Views/OperationPanel.cs

@@ -866,7 +866,8 @@ namespace MOKA_Factory_Tools
                         keyInfo.ACASKey_Data.data = jObject["acaskey_data"].Value<string>();
                         //keyInfo.ACASKey_Tool.data = jObject["acaskey_tool"].Value<string>();
                         keyInfo.DAK.data = jObject["dak"].Value<string>();
-                        keyInfo.FVP.data = jObject["FVP"].Value<string>();
+                        if ( jObject.Property("FVP") != null)
+                            keyInfo.FVP.data = jObject["FVP"].Value<string>();
 
                         WriteDID.Checked = (keyInfo.DID.Length > 0 && m_writedid.Text != LResource.Skip);
                         if (WriteDID.Checked)