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 56700094
authored
Dec 25, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并
1 parent
5e72cfcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
pages/equity/index.vue
utils/logger/LogCat.js
pages/equity/index.vue
View file @
5670009
...
@@ -249,17 +249,17 @@ export default {
...
@@ -249,17 +249,17 @@ export default {
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
})
})
//
const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
//
if (result !== 1) {
if
(
result
!==
1
)
{
//
uni.showToast({
uni
.
showToast
({
//
title: '为了记录语音通话,请打开录音权限',
title
:
'为了记录语音通话,请打开录音权限'
,
//
icon: 'none'
icon
:
'none'
//
})
})
//
return
return
//
}
}
this
.
getSoure
()
this
.
getSoure
()
this
.
clearHistory
()
this
.
clearHistory
()
//
this.$refs.home.startAudio()
this
.
$refs
.
home
.
startAudio
()
this
.
id
=
this
.
moduleList
[
0
].
id
this
.
id
=
this
.
moduleList
[
0
].
id
this
.
type
=
'edit'
this
.
type
=
'edit'
this
.
recording
=
true
this
.
recording
=
true
...
...
utils/logger/LogCat.js
View file @
5670009
...
@@ -2,33 +2,32 @@
...
@@ -2,33 +2,32 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-11-01 15:06:40
* @Date: 2024-11-01 15:06:40
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-
25 18:20:52
* @LastEditTime: 2024-12-
19 16:43:04
* @FilePath: \gl-tape\utils\logger\LogCat.js
* @FilePath: \gl-tape\utils\logger\LogCat.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
import
{
getTime
}
from
'./util'
import
{
getTime
}
from
'./util'
class
LogCat
{
class
LogCat
{
//
main = plus.android.runtimeMainActivity()
main
=
plus
.
android
.
runtimeMainActivity
()
//
File = plus.android.importClass('java.io.File')
File
=
plus
.
android
.
importClass
(
'java.io.File'
)
//
Environment = plus.android.importClass('android.os.Environment')
Environment
=
plus
.
android
.
importClass
(
'android.os.Environment'
)
//
BufferedWriter = plus.android.importClass('java.io.BufferedWriter')
BufferedWriter
=
plus
.
android
.
importClass
(
'java.io.BufferedWriter'
)
//
FileOutputStream = plus.android.importClass('java.io.FileOutputStream')
FileOutputStream
=
plus
.
android
.
importClass
(
'java.io.FileOutputStream'
)
//
OutputStreamWriter = plus.android.importClass('java.io.OutputStreamWriter')
OutputStreamWriter
=
plus
.
android
.
importClass
(
'java.io.OutputStreamWriter'
)
// BufferedReader = plus.android.importClass('java.io.BufferedReader')
// BufferedReader = plus.android.importClass('java.io.BufferedReader')
// FileInputStream = plus.android.importClass('java.io.FileInputStream')
// FileInputStream = plus.android.importClass('java.io.FileInputStream')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
// InputStreamReader = plus.android.importClass('java.io.InputStreamReader')
LogPath
=
''
LogPath
=
''
constructor
(
folderName
=
'_zyzs_log'
)
{
constructor
(
folderName
=
'_zyzs_log'
)
{
//
if (this.Environment.MEDIA_MOUNTED || !this.Environment.isExternalStorageRemovable()) {
if
(
this
.
Environment
.
MEDIA_MOUNTED
||
!
this
.
Environment
.
isExternalStorageRemovable
())
{
//
this.LogPath = this.main.getExternalFilesDir(null).getPath() + folderName
this
.
LogPath
=
this
.
main
.
getExternalFilesDir
(
null
).
getPath
()
+
folderName
//
} else {
}
else
{
//
this.LogPath = this.main.getFilesDir().getPath() + folderName
this
.
LogPath
=
this
.
main
.
getFilesDir
().
getPath
()
+
folderName
//
}
}
//
console.log('日志文件存放路径->', this.LogPath)
console
.
log
(
'日志文件存放路径->'
,
this
.
LogPath
)
}
}
writeLog
(
tag
,
msg
)
{
writeLog
(
tag
,
msg
)
{
return
let
date
=
getTime
(
'YYYY-MM-DD'
)
let
date
=
getTime
(
'YYYY-MM-DD'
)
let
datetime
=
getTime
()
let
datetime
=
getTime
()
//文件名
//文件名
...
...
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