shawenguan 1 سال پیش
والد
کامیت
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;
     }