lrf 2 tahun lalu
induk
melakukan
8d45da56cf
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      app/service/util/rk.js

+ 1 - 3
app/service/util/rk.js

@@ -20,9 +20,7 @@ class RkService extends CrudService {
     await this.redis.del(keyName);
     const keyInfo = JSON.parse(value);
     const obj = this.getKeyInfo();
-    console.log(keyInfo);
-    console.log(obj);
-    if (!_.isEqual(keyInfo, obj)) throw new BusinessError(ErrorCode.DATA_INVALID, 'key校验错误,拒绝请求');
+    if (!_.isEqual(keyInfo, obj)) throw new BusinessError(ErrorCode.DATA_INVALID, 'key校验错误,拒绝请求', { keyInfo, obj });
   }
   // 生成key
   async crk() {