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 a381978b
authored
Apr 11, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
录音截取
1 parent
82b6921f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
env.js
manifest.json
mixin/record/merge.js
utils/recordManager/TempRecord.js
env.js
View file @
a381978
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
1
const
index
=
2
/**
/**
*
*
0本地
0本地
...
...
manifest.json
View file @
a381978
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
"name"
:
"展业助手"
,
"name"
:
"展业助手"
,
"appid"
:
"__UNI__D3BD3DF"
,
"appid"
:
"__UNI__D3BD3DF"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"2.
6
.0"
,
"versionName"
:
"2.
7
.0"
,
"versionCode"
:
"260"
,
"versionCode"
:
"260"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"sassImplementationName"
:
"node-sass"
,
"sassImplementationName"
:
"node-sass"
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"cache"
:
false
,
"cache"
:
false
,
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
"ignoreVersion"
:
true
"ignoreVersion"
:
true
},
},
"screenOrientation"
:
"landscape"
,
"screenOrientation"
:
"landscape"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
...
...
mixin/record/merge.js
View file @
a381978
...
@@ -161,7 +161,7 @@ export default {
...
@@ -161,7 +161,7 @@ export default {
}
}
storageApi
.
removeRecords
(
'preRecordList'
)
storageApi
.
removeRecords
(
'preRecordList'
)
}
catch
(
error
)
{
}
catch
(
error
)
{
uni
.
$logger
.
error
(
`【合并异常】
${
JSON
.
stringify
(
error
)}
`
)
uni
.
$logger
.
error
(
`【合并异常】
${
JSON
.
stringify
(
error
?.
message
)}
`)
}
}
}
}
}
}
...
...
utils/recordManager/TempRecord.js
View file @
a381978
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @version: 1.0.0
* @Author: limin
* @Author: limin
* @Date: 2025-01-02 18:49:17
* @Date: 2025-01-02 18:49:17
* @LastEditors:
limi
n
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditTime: 2025-0
1-20 18:15:46
* @LastEditTime: 2025-0
4-11 15:59:20
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js
*/
*/
import
utils
from
'../utils'
import
utils
from
'../utils'
...
@@ -58,7 +58,24 @@ class TempRecord {
...
@@ -58,7 +58,24 @@ class TempRecord {
this
.
clearLoopTimer
()
this
.
clearLoopTimer
()
await
this
.
saveTempFile
(
record
)
await
this
.
saveTempFile
(
record
)
const
{
recordUrlList
,
tempFilePath
,
...
__record
}
=
record
const
{
recordUrlList
,
tempFilePath
,
...
__record
}
=
record
__record
.
recordUrlList
=
await
this
.
__analysisUrlList
(
recordUrlList
)
const
recordLongList
=
await
this
.
__analysisUrlList
(
recordUrlList
)
const
{
maxUploadNum
=
10
}
=
uni
.
$storage
.
get
(
'mock_data'
)
if
(
recordLongList
.
length
>
maxUploadNum
)
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
{
customerName
,
phoneNumber
,
carModel
,
salesName
}
=
record
||
{}
const
{
name
}
=
userInfo
||
{}
uni
.
$logger
.
error
({
msg
:
`员工:
${
name
}
, 客户:
${
customerName
}
`
,
extra
:
{
'手机号: '
:
phoneNumber
,
'姓名: '
:
customerName
,
'销售: '
:
salesName
,
'车型: '
:
carModel
,
'原因: '
:
'录音文件过长,数量'
+
recordLongList
.
length
}
})
}
__record
.
recordUrlList
=
recordLongList
.
slice
(
0
,
maxUploadNum
)
uni
.
$logger
.
local
.
info
(
'〖接待记录Record〗 == 更新文件,保存记录!'
)
uni
.
$logger
.
local
.
info
(
'〖接待记录Record〗 == 更新文件,保存记录!'
)
await
this
.
dbManager
.
addRecord
(
__record
)
await
this
.
dbManager
.
addRecord
(
__record
)
await
this
.
clearLocalRecord
(
record
)
await
this
.
clearLocalRecord
(
record
)
...
...
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