MrShi
2025-08-19 30e858fa504b268b9b436afca0a1259cf6e8c488
admin/src/utils/request/decryption.js
@@ -10,15 +10,11 @@
// const privateKey = uni.getStorageSync('aes_private_key')
export function decryptedData (msg, data) {
  console.log(msg)
  console.log(data)
  // 变换key:将当月位数字符串去除,然后倒序
  const monthIndex = new Date().getMonth() + 1
  const msgStr = msg.slice(0, monthIndex) + msg.slice(monthIndex + 1)
  const reverseMsgStr = msgStr.split('').reverse().join('')
  const str1 = data.replace(/\s/g, '')
  console.log(reverseMsgStr)
  console.log(str1)
  // 解密并返回结果
  return (
    JSON.parse(