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