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
ed2e0da9
Commit
ed2e0da9
authored
Jul 29, 2025
by
waterword
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(factoryTest_plugin): 注释掉多余的 console.log 语句
parent
4ec9f1b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
factoryTest_plugin/factory_testSystemInfo.js
factoryTest_plugin/factory_testSystemInfo.js
+9
-9
No files found.
factoryTest_plugin/factory_testSystemInfo.js
View file @
ed2e0da9
...
@@ -157,7 +157,7 @@ function updateSystemInfo() {
...
@@ -157,7 +157,7 @@ function updateSystemInfo() {
});
});
// console.log(`
//
//
console.log(`
// 系统信息已更新:
// 系统信息已更新:
// 固件版本: ${systemInfo.softwareVersion}
// 固件版本: ${systemInfo.softwareVersion}
// 硬件版本: ${systemInfo.hardwareVersion}
// 硬件版本: ${systemInfo.hardwareVersion}
...
@@ -185,7 +185,7 @@ function softVersionEvent() {
...
@@ -185,7 +185,7 @@ function softVersionEvent() {
color
=
"
#00ff00
"
;
color
=
"
#00ff00
"
;
}
}
console
.
log
(
"
color==
"
+
color
)
//
console.log("color==" + color)
that
.
$setTextColor
(
"
systemId1_TextValue2
"
,
color
);
that
.
$setTextColor
(
"
systemId1_TextValue2
"
,
color
);
}
}
// 启动定时器
// 启动定时器
...
@@ -215,8 +215,8 @@ function compareVersionStrings(str1, str2) {
...
@@ -215,8 +215,8 @@ function compareVersionStrings(str1, str2) {
// 从字符串中提取数字部分
// 从字符串中提取数字部分
var
num1
=
str1
.
substring
(
1
).
split
(
'
.
'
).
map
(
Number
);
var
num1
=
str1
.
substring
(
1
).
split
(
'
.
'
).
map
(
Number
);
var
num2
=
str2
.
substring
(
1
).
split
(
'
.
'
).
map
(
Number
);
var
num2
=
str2
.
substring
(
1
).
split
(
'
.
'
).
map
(
Number
);
console
.
log
(
"
num1=
"
+
num1
);
//
console.log("num1=" + num1);
console
.
log
(
"
num2=
"
+
num2
);
//
console.log("num2=" + num2);
for
(
let
i
=
0
;
i
<
num1
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
num1
.
length
;
i
++
)
{
if
(
num1
[
i
]
>
num2
[
i
])
{
if
(
num1
[
i
]
>
num2
[
i
])
{
...
@@ -231,12 +231,12 @@ function checkSoftVersion() {
...
@@ -231,12 +231,12 @@ function checkSoftVersion() {
var
obj
=
file
.
readBasicPath
(
"
../../../../../mnt/exUDISK/swuUpdate/swuVersion.json
"
,
"
json
"
);
var
obj
=
file
.
readBasicPath
(
"
../../../../../mnt/exUDISK/swuUpdate/swuVersion.json
"
,
"
json
"
);
if
(
obj
==
undefined
)
{
if
(
obj
==
undefined
)
{
console
.
log
(
"
swuVersion.json is not exist!
"
);
//
console.log("swuVersion.json is not exist!");
return
1
;
return
1
;
}
}
console
.
log
(
"
obj.version=
"
+
obj
.
version
);
//
console.log("obj.version=" + obj.version);
var
comparativeResult
=
compareVersionStrings
(
obj
.
version
,
systemInfo
.
softwareVersion
);
var
comparativeResult
=
compareVersionStrings
(
obj
.
version
,
systemInfo
.
softwareVersion
);
console
.
log
(
"
comparativeResult=
"
+
comparativeResult
);
//
console.log("comparativeResult=" + comparativeResult);
if
(
comparativeResult
==
1
)
{
if
(
comparativeResult
==
1
)
{
return
0
;
//表示U盘里的baner版本号比当前版本号大
return
0
;
//表示U盘里的baner版本号比当前版本号大
...
@@ -389,10 +389,10 @@ function getScreenVendor() {
...
@@ -389,10 +389,10 @@ function getScreenVendor() {
if
(
vendorStr
)
{
if
(
vendorStr
)
{
const
trimmedVendorStr
=
vendorStr
.
trim
();
const
trimmedVendorStr
=
vendorStr
.
trim
();
console
.
log
(
`Screen Vendor:
${
trimmedVendorStr
}
`
);
//
console.log(`Screen Vendor: ${trimmedVendorStr}`);
return
trimmedVendorStr
;
return
trimmedVendorStr
;
}
else
{
}
else
{
console
.
log
(
"
无法读取屏幕厂商信息
"
);
//
console.log("无法读取屏幕厂商信息");
return
"
NG
"
;
return
"
NG
"
;
}
}
}
}
...
...
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