|
@@ -445,7 +445,10 @@ const handleTokenSignUp = async (signUpFn, price) => {
|
|
|
});
|
|
|
try {
|
|
|
// 加密
|
|
|
- let {ciphertext, iv} = await AES_CBC_ENCRYPT(privateKey.value);
|
|
|
+ let {ciphertext, iv} = await AES_CBC_ENCRYPT(privateKey.value) || {};
|
|
|
+ if(!ciphertext || !iv){
|
|
|
+ return;
|
|
|
+ }
|
|
|
// console.log(signUpFn, ciphertext, iv);
|
|
|
let res = await enrollGameMatch({
|
|
|
dapp_id:15,match_id:gameDetail.value?.id,address:walletAddress.value,
|
|
@@ -536,7 +539,10 @@ const getsendSingleReward = async (prize_money) =>{
|
|
|
});
|
|
|
try {
|
|
|
// 加密
|
|
|
- let {ciphertext, iv} = await AES_CBC_ENCRYPT(privateKey.value);
|
|
|
+ let {ciphertext, iv} = await AES_CBC_ENCRYPT(privateKey.value) || {};
|
|
|
+ if(!ciphertext || !iv){
|
|
|
+ return;
|
|
|
+ }
|
|
|
// console.log(ciphertext, iv);
|
|
|
let res = await receiveGamePrize({
|
|
|
dapp_id:15,match_id:gameDetail.value?.id,address:walletAddress.value,
|