Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re860_factory
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
waterword
re860_factory
Commits
601d2b82
Commit
601d2b82
authored
Sep 22, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:更新产测获取SN方式
parent
04f364af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
factoryTestItem/factory_testList.evue
factoryTestItem/factory_testList.evue
+2
-2
factoryTest_plugin/factory_testSystemInfo.js
factoryTest_plugin/factory_testSystemInfo.js
+13
-9
No files found.
factoryTestItem/factory_testList.evue
View file @
601d2b82
...
...
@@ -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
)
...
...
factoryTest_plugin/factory_testSystemInfo.js
View file @
601d2b82
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment