Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
74be38e1
Commit
74be38e1
authored
Jan 27, 2024
by
18224442217
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
97e9fd9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
api.js
plugin/api.js
+11
-11
No files found.
plugin/api.js
View file @
74be38e1
...
...
@@ -2,20 +2,20 @@ import Md5 from "js-md5"
import
{
get_xs
}
from
'@/static/xhs.js'
const
resolveRVHandler
=
(
response
)
=>
{
if
(
response
.
header
&&
response
.
header
[
'r-v'
]){
uni
.
setStorageSync
(
"r-v"
,
response
.
header
[
'r-v'
])
}
//
if(response.header && response.header['r-v']){
//
uni.setStorageSync("r-v",response.header['r-v'])
//
}
}
const
getRVHandler
=
(
payload
,
token
)
=>
{
if
(
uni
.
getStorageSync
(
"r-v"
)){
let
a1
=
uni
.
getStorageSync
(
"r-v"
)
let
xs
=
get_xs
(
payload
,
a1
,
token
)
if
(
xs
&&
xs
!=
''
){
console
.
log
(
xs
)
return
xs
}
}
//
if(uni.getStorageSync("r-v")){
//
let a1 =uni.getStorageSync("r-v")
//
let xs = get_xs(payload, a1,token)
//
if(xs && xs !=''){
//
console.log(xs)
//
return xs
//
}
//
}
return
''
}
...
...
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