Commit 96b24780 by 胡悦

Merge branch 'v3.21.0' into 'develop'

11.4上线合并代码

See merge request !2
2 parents 947fdbeb 2040c269
...@@ -3,22 +3,28 @@ import axios from 'axios' ...@@ -3,22 +3,28 @@ import axios from 'axios'
import qs from 'qs' import qs from 'qs'
// import GlsxVueCommon from 'glsx-vue-common' // import GlsxVueCommon from 'glsx-vue-common'
import sign from './sign' import sign from './sign'
import { import { GlAxios } from 'glsx-vue-common'
GlAxios const request = (
} from 'glsx-vue-common' params = {},
const request = (params = {}, method = RequestMethods.GET, noSignAttr = [], url = '') => { method = RequestMethods.GET,
noSignAttr = [],
url = ''
) => {
params.source = 'glsx-oss-merchant-data' params.source = 'glsx-oss-merchant-data'
params.appKey = '48e5e13229b82c1b4e6e8c96151f0637' params.appKey = '48e5e13229b82c1b4e6e8c96151f0637'
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'
params.sessionAuth = 'st'
// params.createBy = this.$get_session_config().user.id // params.createBy = this.$get_session_config().user.id
var data = sign(params, noSignAttr) var data = sign(params, noSignAttr)
if (url) { if (url) {
return axios.post(`${url}/router?method=${method}`, qs.stringify(data)) return axios.post(`${url}/router?method=${method}`, qs.stringify(data))
} }
return method === RequestMethods.GET ? GlAxios.get('router', { return method === RequestMethods.GET
params: sign(params, noSignAttr) ? GlAxios.get('router', {
}) : GlAxios.post('router', data) params: sign(params, noSignAttr),
})
: GlAxios.post('router', data)
} }
export default request export default request
...@@ -79,8 +79,8 @@ var mixin = { ...@@ -79,8 +79,8 @@ var mixin = {
} }
} }
} }
const URL = 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config' const URL = 'https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl='
const getConfig = (url = URL + '/glsx-oss-account-config') => { const getConfig = (url = URL + 'glsx-oss-account-config') => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
request({ url }).then(res => { request({ url }).then(res => {
if (res.status === 'success') { if (res.status === 'success') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!