This commit is contained in:
parent
7a2cf6b8f8
commit
08a16a68c6
@ -39,7 +39,7 @@ const downLoadMac = ref('')
|
|||||||
const downLoadAndroid = ref('')
|
const downLoadAndroid = ref('')
|
||||||
request
|
request
|
||||||
.get('/api/v1/common/client/download', {
|
.get('/api/v1/common/client/download', {
|
||||||
invite_code: getAllQueryString('ic'),
|
// invite_code: getAllQueryString('ic'),
|
||||||
platform: 'mac',
|
platform: 'mac',
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@ -48,7 +48,7 @@ request
|
|||||||
|
|
||||||
request
|
request
|
||||||
.get('/api/v1/common/client/download', {
|
.get('/api/v1/common/client/download', {
|
||||||
invite_code: getAllQueryString('ic'),
|
// invite_code: getAllQueryString('ic'),
|
||||||
platform: 'windows',
|
platform: 'windows',
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@ -58,7 +58,7 @@ request
|
|||||||
|
|
||||||
request
|
request
|
||||||
.get('/api/v1/common/client/download', {
|
.get('/api/v1/common/client/download', {
|
||||||
invite_code: getAllQueryString('ic'),
|
// invite_code: getAllQueryString('ic'),
|
||||||
platform: 'android',
|
platform: 'android',
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@ -160,6 +160,7 @@ export default class Request {
|
|||||||
|
|
||||||
if (config.method?.toLowerCase() === 'get' || config.params) {
|
if (config.method?.toLowerCase() === 'get' || config.params) {
|
||||||
const paramsToEncrypt = config.params || {}
|
const paramsToEncrypt = config.params || {}
|
||||||
|
// console.log('paramsToEncrypt', paramsToEncrypt)
|
||||||
const plainParamsText = JSON.stringify(paramsToEncrypt)
|
const plainParamsText = JSON.stringify(paramsToEncrypt)
|
||||||
const encryptedParams = HiAesUtil.encryptData(plainParamsText, encryptionKey)
|
const encryptedParams = HiAesUtil.encryptData(plainParamsText, encryptionKey)
|
||||||
|
|
||||||
@ -202,7 +203,7 @@ export default class Request {
|
|||||||
responseData.time,
|
responseData.time,
|
||||||
encryptionKey,
|
encryptionKey,
|
||||||
)
|
)
|
||||||
console.log('decryptedStr', JSON.parse(decryptedStr))
|
// console.log('decryptedStr', JSON.parse(decryptedStr))
|
||||||
responseData = JSON.parse(decryptedStr)
|
responseData = JSON.parse(decryptedStr)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('解密失败:', e)
|
console.error('解密失败:', e)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user