MrShi
2025-04-23 c8b32b8bca79a116cfab70eb8c389907b664c9ca
h5/utils/decryption.js
@@ -10,15 +10,15 @@
// const privateKey = uni.getStorageSync('aes_private_key')
export function decryptedData (msg, data) {
  console.log(msg)
  console.log(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)
  // console.log(reverseMsgStr)
  // console.log(str1)
  // 解密并返回结果
  return (
    JSON.parse(