Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit af393556
authored
Jan 17, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
记录字符串
1 parent
d5cb1dc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
ws/workers/RecordsWorker.js
ws/workers/TempRecordsWorker.js
ws/workers/RecordsWorker.js
View file @
af39355
...
@@ -4,7 +4,7 @@ export default class RecordsWorker {
...
@@ -4,7 +4,7 @@ export default class RecordsWorker {
async
work
(
deviceId
,
data
,
ws
)
{
async
work
(
deviceId
,
data
,
ws
)
{
try
{
try
{
const
records
=
await
uni
.
$dbManager
.
getRecords
()
const
records
=
await
uni
.
$dbManager
.
getRecords
()
const
msg
=
`记录获取成功 records ->
${
records
}
`
const
msg
=
`记录获取成功 records ->
${
JSON
.
stringify
(
records
)
}
`
uni
.
$logger
.
local
.
info
(
msg
)
uni
.
$logger
.
local
.
info
(
msg
)
ws
.
send
({
code
:
200
,
msg
})
ws
.
send
({
code
:
200
,
msg
})
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
ws/workers/TempRecordsWorker.js
View file @
af39355
...
@@ -3,7 +3,7 @@ export default class TempRecordsWorker {
...
@@ -3,7 +3,7 @@ export default class TempRecordsWorker {
async
work
(
deviceId
,
data
,
ws
)
{
async
work
(
deviceId
,
data
,
ws
)
{
try
{
try
{
const
records
=
await
uni
.
$dbTempRecord
.
getRecords
()
const
records
=
await
uni
.
$dbTempRecord
.
getRecords
()
const
msg
=
`记录获取待提交记录成功 temp records ->
${
records
}
`
const
msg
=
`记录获取待提交记录成功 temp records ->
${
JSON
.
stringify
(
records
)
}
`
uni
.
$logger
.
local
.
info
(
msg
)
uni
.
$logger
.
local
.
info
(
msg
)
ws
.
send
({
code
:
200
,
msg
})
ws
.
send
({
code
:
200
,
msg
})
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment