|
@@ -4810,6 +4810,14 @@ namespace MOKA_Factory_Tools
|
|
|
string psn = keyInfo._PSN.data = Encoding.ASCII.GetString(data_psn);
|
|
|
if (CommonMethod.GetFireTVDsn(midListNow.host, orderNow, Encoding.ASCII.GetString(data), SN, psn, out string dsn, out error_psn, errorDBNow))
|
|
|
{
|
|
|
+ // 预防切了pid后,deviceCode变化了;
|
|
|
+ if ( dsn.IndexOf(devicecode) == -1 )
|
|
|
+ {
|
|
|
+ ErrMsg = string.Format("The device code [{0}] is not included in the DSN [{1}]!\r\n", devicecode, dsn);
|
|
|
+ Log.WriteErrorLog(ErrMsg);
|
|
|
+ goto end;
|
|
|
+ }
|
|
|
+
|
|
|
keyInfo.DSN.data = dsn;
|
|
|
if (!CommonMethod.IsNumberAndWord(keyInfo.DSN.data))
|
|
|
{
|