Commit 601d2b82 authored by lyong's avatar lyong

fix:更新产测获取SN方式

parent 04f364af
......@@ -222,8 +222,8 @@
//console.log("sysVersion=" + sysVersion);
//console.log("appVersion=" + 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.testCode(this)
......
......@@ -4,6 +4,7 @@ var userData = _userdata.userData;
const fs = require("@system.fs");
var systemCtrl = require("systemCtrl.js");
var process = require("@system.process");
var handleSNDataBinFile = require("handleSNDataBinFile.js");
var file = require("file.js");
var that;
var systemInfoTimer = null;
......@@ -97,6 +98,7 @@ function updateSystemInfo() {
systemInfo.wifiIp = "NG";
systemInfo.screenVendor = "";
systemInfo.ddrFrequency = "NG";
systemInfo.sn = userData.aboutSNValue || "NG";
} else {
systemInfo.cpuTemperature = getCPUTemperature();
......@@ -107,8 +109,10 @@ function updateSystemInfo() {
systemInfo.wifiIp = getWifiInfo("ip_address"); //前提wifi要连接
systemInfo.screenVendor = getScreenVendor(); // 需根据实际实现
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.wifiModel = "AP62212"; // 示例值
......@@ -126,14 +130,14 @@ function updateSystemInfo() {
that.crtsystemId1_TextValue2 = systemInfo.softwareVersion;
that.crtsystemId1_TextValue3 = systemInfo.hardwareVersion;
that.crtsystemId1_TextValue4 = systemInfo.tpVersion,
that.crtsystemId1_TextValue5 = (systemInfo.ddrFrequency != "NG") ? systemInfo.ddrFrequency + "MHz" : systemInfo.ddrFrequency;
// that.crtsystemId2_TextHeader1: "WiFi MAC:",
// that.crtsystemId2_TextHeader2: "蓝牙MAC:",
// that.crtsystemId2_TextHeader3: "语音license:",
// that.crtsystemId2_TextHeader4: "CPU温度:",
// that.crtsystemId2_TextHeader5: "存储空间:",
that.crtsystemId2_TextValue1 = systemInfo.wifiMac;
that.crtsystemId1_TextValue5 = (systemInfo.ddrFrequency != "NG") ? systemInfo.ddrFrequency + "MHz" : systemInfo.ddrFrequency;
// that.crtsystemId2_TextHeader1: "WiFi MAC:",
// that.crtsystemId2_TextHeader2: "蓝牙MAC:",
// that.crtsystemId2_TextHeader3: "语音license:",
// that.crtsystemId2_TextHeader4: "CPU温度:",
// that.crtsystemId2_TextHeader5: "存储空间:",
that.crtsystemId2_TextValue1 = systemInfo.wifiMac;
// that.crtsystemId2_TextValue2: "NG",
that.crtsystemId2_TextValue3 = systemInfo.licenseRegistered;
that.crtsystemId2_TextValue4 = (systemInfo.cpuTemperature != "NG") ? systemInfo.cpuTemperature + "" : systemInfo.cpuTemperature;
......
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