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
d59763b2
Commit
d59763b2
authored
Sep 01, 2023
by
王振宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat_paramsGet_230831' into 'master'
Feat params get 230831 See merge request
!10
parents
2b06bf51
7b954202
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
package-lock.json
packages/toolkit/package-lock.json
+1
-1
package.json
packages/toolkit/package.json
+1
-1
Payment.ts
packages/toolkit/src/Payment/Payment.ts
+4
-4
No files found.
packages/toolkit/package-lock.json
View file @
d59763b2
{
"name"
:
"@ydl-packages/toolkit"
,
"version"
:
"1.0.1
1
"
,
"version"
:
"1.0.1
2
"
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
...
...
packages/toolkit/package.json
View file @
d59763b2
{
"name"
:
"@ydl-packages/toolkit"
,
"version"
:
"1.0.1
1
"
,
"version"
:
"1.0.1
2
"
,
"description"
:
""
,
"main"
:
"./dist/index.umd.js"
,
"scripts"
:
{
...
...
packages/toolkit/src/Payment/Payment.ts
View file @
d59763b2
...
...
@@ -55,8 +55,8 @@ const createRequestForPhp = () => {
const
requestData
=
{
...
config
.
data
,
ts
:
parseInt
((
Date
.
now
()
/
1000
).
toString
()).
toString
(),
[
UID
]:
Utils
.
getCookie
(
UID
),
[
ACCESS_TOKEN
]:
Utils
.
getCookie
(
ACCESS_TOKEN
)
[
UID
]:
Utils
.
get
QueryString
(
UID
)
||
Utils
.
get
Cookie
(
UID
),
[
ACCESS_TOKEN
]:
Utils
.
get
QueryString
(
ACCESS_TOKEN
)
||
Utils
.
get
Cookie
(
ACCESS_TOKEN
)
}
return
{
...
config
,
...
...
@@ -66,8 +66,8 @@ const createRequestForPhp = () => {
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
,
Authorization
:
`Ydl
${
genSign
(
requestData
)}
`
,
[
UID
]:
Utils
.
getCookie
(
UID
),
[
ACCESS_TOKEN
]:
Utils
.
getCookie
(
ACCESS_TOKEN
)
[
UID
]:
Utils
.
get
QueryString
(
UID
)
||
Utils
.
get
Cookie
(
UID
),
[
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