Browse Source

修复新接口处理过程:未处理到无key请求,只有Roku信息的情况。

JeffWang 3 years ago
parent
commit
49d39c9960
1 changed files with 13 additions and 5 deletions
  1. 13 5
      FactoryTool_CShare/Views/OperationPanel.cs

+ 13 - 5
FactoryTool_CShare/Views/OperationPanel.cs

@@ -2186,12 +2186,20 @@ namespace MOKA_Factory_Tools
                         goto end;
                     }
                 }
-                
-                if ( !CommonMethod.GetIDMKeys(midListNow.host, SN, orderNow, psn, devicecode, errorDBNow, out keyInfo, out error) )
+
+                // 部分订单无key,只有Roku信息;
+                if (midListNow.keytype.Count() != 0)
                 {
-                    ErrMsg = string.Format("{0} GetIDMKeys Failed!\r\n{1}", SN, error);
-                    Log.WriteErrorLog(ErrMsg);
-                    goto end;
+                    if (!CommonMethod.GetIDMKeys(midListNow.host, SN, orderNow, psn, devicecode, errorDBNow, out keyInfo, out error))
+                    {
+                        ErrMsg = string.Format("{0} GetIDMKeys Failed!\r\n{1}", SN, error);
+                        Log.WriteErrorLog(ErrMsg);
+                        goto end;
+                    }
+                }
+                else
+                {
+                    Log.WriteInfoLog("mid type is null, don't query idm keys");
                 }
 
                 if (midListNow.keytype.ContainsKey("DSN"))