shawenguan 1 год назад
Родитель
Сommit
d8fef9766b
1 измененных файлов с 4 добавлено и 4 удалено
  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;
     }