Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5eca6a69
authored
Mar 28, 2019
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改sign
1 parent
4cf6dae7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/api/sign.js
src/api/sign.js
View file @
5eca6a6
...
@@ -4,6 +4,9 @@ const sign = params => {
...
@@ -4,6 +4,9 @@ const sign = params => {
const
secret
=
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
secret
=
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
keys
=
Object
.
keys
(
params
).
sort
()
const
keys
=
Object
.
keys
(
params
).
sort
()
var
str
=
[]
var
str
=
[]
for
(
const
key
in
params
)
{
if
(
typeof
params
[
key
]
===
'object'
)
params
[
key
]
=
JSON
.
stringify
(
params
[
key
])
}
keys
.
forEach
(
e
=>
{
keys
.
forEach
(
e
=>
{
str
.
push
(
e
+
params
[
e
])
str
.
push
(
e
+
params
[
e
])
})
})
...
...
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