Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
海康威视
web-project
Commits
6495fd8b
Commit
6495fd8b
authored
Sep 23, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加密问题修改
parent
0a975ffd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
RecyclePump.js
src/api/AIStation/RecyclePump.js
+1
-1
token.js
src/api/AIStation/token.js
+9
-3
No files found.
src/api/AIStation/RecyclePump.js
View file @
6495fd8b
...
...
@@ -31,5 +31,5 @@ export const exportRecyclePumpAlarmData = (item) => {
// return httpTwo.get(`/busFireExtinguisher/test3`,'','',{responseType:'blob'})
// }
export
const
getAudio
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/busFireExtinguisher/test
3
?audioUrl=
${
item
}
`
,
''
,
''
,{
responseType
:
'blob'
})
return
httpTwo
.
get
(
`/busFireExtinguisher/test
4
?audioUrl=
${
item
}
`
,
''
,
''
,{
responseType
:
'blob'
})
}
src/api/AIStation/token.js
View file @
6495fd8b
import
httpTwo
from
'../httpTwo'
import
qs
from
"qs"
;
import
{
encrypt
}
from
'../../utils/jsencrypt.js'
import
{
encrypt
,
encryptTwo
}
from
'../../utils/jsencrypt.js'
// 获取随机uuid
export
const
getAuthUUID
=
params
=>
{
...
...
@@ -17,8 +17,14 @@ export const createToken = params => {
const
sign
=
qs
.
stringify
({
sign
:
encrypt
(
params
)
})
const
headers
=
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
return
httpTwo
.
post
(
`/auth/createToken`
,
sign
,
headers
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
'params'
,
params
)
const
data
=
{
userId
:
encryptTwo
(
params
.
userId
),
username
:
encryptTwo
(
params
.
username
),
uuid
:
encryptTwo
(
params
.
uuid
),
}
// const headers = {'Content-Type': 'application/x-www-form-urlencoded'}
return
httpTwo
.
post
(
`/auth/createToken`
,
data
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
}
...
...
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