congjiang hace 4 días
padre
commit
cb0f415db7
Se han modificado 2 ficheros con 3 adiciones y 4 borrados
  1. 2 2
      src/pages/trade/index.vue
  2. 1 2
      src/utils/utils.js

+ 2 - 2
src/pages/trade/index.vue

@@ -297,8 +297,8 @@ const triggered = ref(false);
 const received = ref(false);
 const receivedItem = ref({});
 const GasRate = ref(1);
-// const privateKey = ref('');
-const privateKey = ref("4d8d38c6433c9552a11181b64a234814cd83f5b0d2c7306545ee097da9c0e4b2");//H5
+const privateKey = ref('');
+// const privateKey = ref("4d8d38c6433c9552a11181b64a234814cd83f5b0d2c7306545ee097da9c0e4b2");//H5
 
 const bgClass = computed(() => {
   if (gameCheck.value === 0) return 'bg1';

+ 1 - 2
src/utils/utils.js

@@ -121,8 +121,7 @@ async function getRandomString16() {
 }
 export async function AES_CBC_ENCRYPT(val) {
 	const IV = await getRandomString16();
-	// const KEY = window.android.getGlobalParam('key');
-    const KEY = '05f8f563b95103e1';
+	const KEY = window.android.getGlobalParam('key');
 	const secretKey = CryptoJS.enc.Utf8.parse(KEY);
 	const ivk = CryptoJS.enc.Utf8.parse(IV);
 	let ivHex = CryptoJS.enc.Base64.stringify(ivk);