|
@@ -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() {
|