Commit 5e0ab353 by liwk

commit

1 parent fdcf1553
...@@ -4,12 +4,11 @@ import RequestMethods from './request.methods' ...@@ -4,12 +4,11 @@ import RequestMethods from './request.methods'
import { import {
GlAxios GlAxios
} from 'glsx-vue-common' } from 'glsx-vue-common'
import base from '@/base'
const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []) => { const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []) => {
console.log('出发', window.vm.$config) console.log('出发', window.vm.$config)
params.method = url.trimStart().trimEnd() params.method = url.trimStart().trimEnd()
// this.$get_session_common_config().axios.sys.appKey // this.$get_session_common_config().axios.sys.appKey
params.appKey = '48e5e13229b82c1b4e6e8c96151f0637' params.appKey = window.vm.$config.axios.appKey
// params.timestamp = new Date().getTime() // params.timestamp = new Date().getTime()
params.v = '1.0.0' params.v = '1.0.0'
params.format = 'json' params.format = 'json'
......
import sha1 from 'sha1' import sha1 from 'sha1'
import qs from 'qs' import qs from 'qs'
const secret = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const sign = (params, noSignAttr = []) => { const sign = (params, noSignAttr = []) => {
const secret = window.vm.$config.axios.secret
delete params.sign delete params.sign
var objStr = qs.stringify(params, { arrayFormat: 'indices', encode: false, allowDots: true }) var objStr = qs.stringify(params, { arrayFormat: 'indices', encode: false, allowDots: true })
var objVal = objStr.split('&') var objVal = objStr.split('&')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!