shawenguan vor 1 Jahr
Ursprung
Commit
d8fef9766b
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      Scripts/hbcpre/hbcpreHelper.js

+ 4 - 4
Scripts/hbcpre/hbcpreHelper.js

@@ -88,11 +88,11 @@ function getBaseConfig(){
 
 //AES加密
 function encryptAES(wordStr, keyStr, ivStr) {
-    if(type(wordStr) != 'string'){
+    if(typeof(wordStr) != 'string'){
         magicJS.logger.error('parame "str" is not a string');
         return;
     }
-    if(type(keyStr) != 'string'){
+    if(typeof(keyStr) != 'string'){
         magicJS.logger.error('parame "key" is not a string');
         return;
     }
@@ -109,11 +109,11 @@ function encryptAES(wordStr, keyStr, ivStr) {
 
 //AES解密
 function decryptAES(wordStr, keyStr, ivStr) {
-    if(type(wordStr) != 'string'){
+    if(typeof(wordStr) != 'string'){
         magicJS.logger.error('parame "str" is not a string');
         return;
     }
-    if(type(keyStr) != 'string'){
+    if(typeof(keyStr) != 'string'){
         magicJS.logger.error('parame "key" is not a string');
         return;
     }