Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
许振钊
ydl-packages
Commits
910a5f2c
Commit
910a5f2c
authored
Aug 31, 2023
by
zhengxiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 用户鉴权信息优先从链接获取
parent
2b06bf51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Payment.ts
packages/toolkit/src/Payment/Payment.ts
+4
-4
No files found.
packages/toolkit/src/Payment/Payment.ts
View file @
910a5f2c
...
@@ -55,8 +55,8 @@ const createRequestForPhp = () => {
...
@@ -55,8 +55,8 @@ const createRequestForPhp = () => {
const
requestData
=
{
const
requestData
=
{
...
config
.
data
,
...
config
.
data
,
ts
:
parseInt
((
Date
.
now
()
/
1000
).
toString
()).
toString
(),
ts
:
parseInt
((
Date
.
now
()
/
1000
).
toString
()).
toString
(),
[
UID
]:
Utils
.
getCookie
(
UID
),
[
UID
]:
Utils
.
get
QueryString
(
UID
)
||
Utils
.
get
Cookie
(
UID
),
[
ACCESS_TOKEN
]:
Utils
.
getCookie
(
ACCESS_TOKEN
)
[
ACCESS_TOKEN
]:
Utils
.
get
QueryString
(
ACCESS_TOKEN
)
||
Utils
.
get
Cookie
(
ACCESS_TOKEN
)
}
}
return
{
return
{
...
config
,
...
config
,
...
@@ -66,8 +66,8 @@ const createRequestForPhp = () => {
...
@@ -66,8 +66,8 @@ const createRequestForPhp = () => {
headers
:
{
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
,
'content-type'
:
'application/x-www-form-urlencoded'
,
Authorization
:
`Ydl
${
genSign
(
requestData
)}
`
,
Authorization
:
`Ydl
${
genSign
(
requestData
)}
`
,
[
UID
]:
Utils
.
getCookie
(
UID
),
[
UID
]:
Utils
.
get
QueryString
(
UID
)
||
Utils
.
get
Cookie
(
UID
),
[
ACCESS_TOKEN
]:
Utils
.
getCookie
(
ACCESS_TOKEN
)
[
ACCESS_TOKEN
]:
Utils
.
get
QueryString
(
ACCESS_TOKEN
)
||
Utils
.
get
Cookie
(
ACCESS_TOKEN
)
}
}
}
}
})
})
...
...
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