Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
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 5e0ab353
authored
Jul 23, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
fdcf1553
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
src/api/request.js
src/api/sign.js
src/api/request.js
View file @
5e0ab35
...
...
@@ -4,12 +4,11 @@ import RequestMethods from './request.methods'
import
{
GlAxios
}
from
'glsx-vue-common'
import
base
from
'@/base'
const
request
=
(
params
=
{},
url
,
method
=
RequestMethods
.
POST
,
noSignAttr
=
[])
=>
{
console
.
log
(
'出发'
,
window
.
vm
.
$config
)
params
.
method
=
url
.
trimStart
().
trimEnd
()
// this.$get_session_common_config().axios.sys.appKey
params
.
appKey
=
'48e5e13229b82c1b4e6e8c96151f0637'
params
.
appKey
=
window
.
vm
.
$config
.
axios
.
appKey
// params.timestamp = new Date().getTime()
params
.
v
=
'1.0.0'
params
.
format
=
'json'
...
...
src/api/sign.js
View file @
5e0ab35
import
sha1
from
'sha1'
import
qs
from
'qs'
const
secret
=
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
sign
=
(
params
,
noSignAttr
=
[])
=>
{
const
secret
=
window
.
vm
.
$config
.
axios
.
secret
delete
params
.
sign
var
objStr
=
qs
.
stringify
(
params
,
{
arrayFormat
:
'indices'
,
encode
:
false
,
allowDots
:
true
})
var
objVal
=
objStr
.
split
(
'&'
)
...
...
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