|
@@ -1609,7 +1609,7 @@ namespace MOKA_Factory_Tools
|
|
public string GenerateReportInfo()
|
|
public string GenerateReportInfo()
|
|
{
|
|
{
|
|
#region 移除非IDM抄写的Key;
|
|
#region 移除非IDM抄写的Key;
|
|
- if (FunctionSettingNow.MITVEnable && _MiKey != null)
|
|
|
|
|
|
+ if ((FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable) && _MiKey != null)
|
|
{
|
|
{
|
|
// 配置要抄写的选项;
|
|
// 配置要抄写的选项;
|
|
if (_MiKey.EthernetMac != null)
|
|
if (_MiKey.EthernetMac != null)
|
|
@@ -2474,7 +2474,7 @@ namespace MOKA_Factory_Tools
|
|
}
|
|
}
|
|
|
|
|
|
#region 小米FireTV功能启用;
|
|
#region 小米FireTV功能启用;
|
|
- if (FunctionSettingNow.MITVEnable)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
{
|
|
{
|
|
// 获取Key;
|
|
// 获取Key;
|
|
if (!CommonMethod.GetMIKey(FunctionSettingNow.MIKeyUrl, SN, out _MiKey, out error))
|
|
if (!CommonMethod.GetMIKey(FunctionSettingNow.MIKeyUrl, SN, out _MiKey, out error))
|
|
@@ -2645,7 +2645,7 @@ namespace MOKA_Factory_Tools
|
|
if (WriteMac.Checked)
|
|
if (WriteMac.Checked)
|
|
{
|
|
{
|
|
string mac = keyInfo.Mac.data.Replace("-", "");
|
|
string mac = keyInfo.Mac.data.Replace("-", "");
|
|
- if (FunctionSettingNow.MITVEnable == true)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
mac = keyInfo.Mac.data.Replace(":", "");
|
|
mac = keyInfo.Mac.data.Replace(":", "");
|
|
if (!CommonMethod.IsNumberAndWord(mac))
|
|
if (!CommonMethod.IsNumberAndWord(mac))
|
|
{
|
|
{
|
|
@@ -2711,7 +2711,7 @@ namespace MOKA_Factory_Tools
|
|
if (WriteWifiMac.Checked)
|
|
if (WriteWifiMac.Checked)
|
|
{
|
|
{
|
|
string wifimac = keyInfo.WiFi_MAC.data.Replace("-", "");
|
|
string wifimac = keyInfo.WiFi_MAC.data.Replace("-", "");
|
|
- if (FunctionSettingNow.MITVEnable == true)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
wifimac = wifimac.Replace(":", "");
|
|
wifimac = wifimac.Replace(":", "");
|
|
if (!CommonMethod.IsNumberAndWord(wifimac))
|
|
if (!CommonMethod.IsNumberAndWord(wifimac))
|
|
{
|
|
{
|
|
@@ -2777,7 +2777,7 @@ namespace MOKA_Factory_Tools
|
|
if (WriteBTMac.Checked)
|
|
if (WriteBTMac.Checked)
|
|
{
|
|
{
|
|
string btmac = keyInfo.BT_MAC.data.Replace("-", "");
|
|
string btmac = keyInfo.BT_MAC.data.Replace("-", "");
|
|
- if (FunctionSettingNow.MITVEnable == true)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
btmac = btmac.Replace(":", "");
|
|
btmac = btmac.Replace(":", "");
|
|
if (!CommonMethod.IsNumberAndWord(btmac))
|
|
if (!CommonMethod.IsNumberAndWord(btmac))
|
|
{
|
|
{
|
|
@@ -4750,7 +4750,7 @@ namespace MOKA_Factory_Tools
|
|
// DSN抄写;
|
|
// DSN抄写;
|
|
if (WriteDSN.Checked)
|
|
if (WriteDSN.Checked)
|
|
{
|
|
{
|
|
- if (FunctionSettingNow.MITVEnable)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
{// 小米的DSN抄写不用这么多处理;
|
|
{// 小米的DSN抄写不用这么多处理;
|
|
if (!CommonMethod.IsNumberAndWord(keyInfo.DSN.data))
|
|
if (!CommonMethod.IsNumberAndWord(keyInfo.DSN.data))
|
|
{
|
|
{
|
|
@@ -4877,7 +4877,7 @@ namespace MOKA_Factory_Tools
|
|
}
|
|
}
|
|
|
|
|
|
#region 小米FireTV功能;
|
|
#region 小米FireTV功能;
|
|
- if (FunctionSettingNow.MITVEnable)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
{
|
|
{
|
|
#if true
|
|
#if true
|
|
// 读取PSN;
|
|
// 读取PSN;
|
|
@@ -5056,7 +5056,7 @@ namespace MOKA_Factory_Tools
|
|
{// 在线抄写;
|
|
{// 在线抄写;
|
|
if (WriteDID.Checked)
|
|
if (WriteDID.Checked)
|
|
{
|
|
{
|
|
- string postjson = V2Method.GetReportJson(orderNow, SN, isNodid: false, midListNow.clienttype, midListNow.version, ProjectIDText.Text, ref keyInfo, FunctionSettingNow.MITVEnable, ref _MiKey);
|
|
|
|
|
|
+ string postjson = V2Method.GetReportJson(orderNow, SN, isNodid: false, midListNow.clienttype, midListNow.version, ProjectIDText.Text, ref keyInfo, FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable, ref _MiKey);
|
|
if (V2Method.ReportOnlineData(midListNow.host, orderNow, postjson, errorDBNow, false, "", FunctionSettingNow.ReportTimeOut))
|
|
if (V2Method.ReportOnlineData(midListNow.host, orderNow, postjson, errorDBNow, false, "", FunctionSettingNow.ReportTimeOut))
|
|
{
|
|
{
|
|
TestResult = 1;
|
|
TestResult = 1;
|
|
@@ -5079,7 +5079,7 @@ namespace MOKA_Factory_Tools
|
|
if (SN.Trim().Length > 0)
|
|
if (SN.Trim().Length > 0)
|
|
{
|
|
{
|
|
keycontent += "nodid=true&";
|
|
keycontent += "nodid=true&";
|
|
- string postjson = V2Method.GetReportJson(orderNow, SN, isNodid: true, midListNow.clienttype, midListNow.version, ProjectIDText.Text, ref keyInfo, FunctionSettingNow.MITVEnable, ref _MiKey);
|
|
|
|
|
|
+ string postjson = V2Method.GetReportJson(orderNow, SN, isNodid: true, midListNow.clienttype, midListNow.version, ProjectIDText.Text, ref keyInfo, FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable, ref _MiKey);
|
|
if (V2Method.ReportOnlineData(midListNow.host, orderNow, postjson, errorDBNow, false, "", FunctionSettingNow.ReportTimeOut))
|
|
if (V2Method.ReportOnlineData(midListNow.host, orderNow, postjson, errorDBNow, false, "", FunctionSettingNow.ReportTimeOut))
|
|
{
|
|
{
|
|
TestResult = 1;
|
|
TestResult = 1;
|
|
@@ -5137,7 +5137,7 @@ namespace MOKA_Factory_Tools
|
|
}
|
|
}
|
|
|
|
|
|
#region 小米FireTV功能;
|
|
#region 小米FireTV功能;
|
|
- if (FunctionSettingNow.MITVEnable)
|
|
|
|
|
|
+ if (FunctionSettingNow.MITVEnable || FunctionSettingNow.IndiaMITVEnable)
|
|
{
|
|
{
|
|
if (!ReportMIInfo(out error))
|
|
if (!ReportMIInfo(out error))
|
|
{
|
|
{
|