Commit 601d2b82 authored by lyong's avatar lyong

fix:更新产测获取SN方式

parent 04f364af
...@@ -222,8 +222,8 @@ ...@@ -222,8 +222,8 @@
//console.log("sysVersion=" + sysVersion); //console.log("sysVersion=" + sysVersion);
//console.log("appVersion=" + appVersion); //console.log("appVersion=" + appVersion);
//this.crtSNValue = sysVersion + "-" + appVersion; //this.crtSNValue = sysVersion + "-" + appVersion;
this.crtSNValue = userData.aboutSNValue || "NG" // this.crtSNValue = userData.aboutSNValue || "NG"
this.crtSNValue = require("handleSNDataBinFile.js").readStrFromBinFile() || "NG";
yesJumpPage.initPage(this.appItem); yesJumpPage.initPage(this.appItem);
yesJumpPage.testCode(this) yesJumpPage.testCode(this)
......
...@@ -4,6 +4,7 @@ var userData = _userdata.userData; ...@@ -4,6 +4,7 @@ var userData = _userdata.userData;
const fs = require("@system.fs"); const fs = require("@system.fs");
var systemCtrl = require("systemCtrl.js"); var systemCtrl = require("systemCtrl.js");
var process = require("@system.process"); var process = require("@system.process");
var handleSNDataBinFile = require("handleSNDataBinFile.js");
var file = require("file.js"); var file = require("file.js");
var that; var that;
var systemInfoTimer = null; var systemInfoTimer = null;
...@@ -97,6 +98,7 @@ function updateSystemInfo() { ...@@ -97,6 +98,7 @@ function updateSystemInfo() {
systemInfo.wifiIp = "NG"; systemInfo.wifiIp = "NG";
systemInfo.screenVendor = ""; systemInfo.screenVendor = "";
systemInfo.ddrFrequency = "NG"; systemInfo.ddrFrequency = "NG";
systemInfo.sn = userData.aboutSNValue || "NG";
} else { } else {
systemInfo.cpuTemperature = getCPUTemperature(); systemInfo.cpuTemperature = getCPUTemperature();
...@@ -107,8 +109,10 @@ function updateSystemInfo() { ...@@ -107,8 +109,10 @@ function updateSystemInfo() {
systemInfo.wifiIp = getWifiInfo("ip_address"); //前提wifi要连接 systemInfo.wifiIp = getWifiInfo("ip_address"); //前提wifi要连接
systemInfo.screenVendor = getScreenVendor(); // 需根据实际实现 systemInfo.screenVendor = getScreenVendor(); // 需根据实际实现
systemInfo.ddrFrequency = getDDRFrequency(); systemInfo.ddrFrequency = getDDRFrequency();
systemInfo.sn = handleSNDataBinFile.readStrFromBinFile() || "NG";
} }
systemInfo.sn = userData.aboutSNValue || "NG"; // systemInfo.sn = userData.aboutSNValue || "NG";
// systemInfo.sn = userData.aboutInnerSNValue || "NG";
systemInfo.tpVersion = userData.tpFirmwareVersion; // 示例值 systemInfo.tpVersion = userData.tpFirmwareVersion; // 示例值
systemInfo.wifiModel = "AP62212"; // 示例值 systemInfo.wifiModel = "AP62212"; // 示例值
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment