修改下载链接
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m34s

This commit is contained in:
speakeloudest 2026-01-27 07:52:44 -08:00
parent 7a2cf6b8f8
commit 08a16a68c6
2 changed files with 5 additions and 4 deletions

View File

@ -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) => {

View File

@ -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)