Commit 5e0ab353 by liwk

commit

1 parent fdcf1553
......@@ -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'
......
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('&')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!