lrf пре 2 година
родитељ
комит
f40322aa11
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      app/service/util/rk.js

+ 0 - 4
app/service/util/rk.js

@@ -41,8 +41,6 @@ class RkService extends CrudService {
     const body = _.get(request, 'body');
     const userAgent = _.get(request, 'header.user-agent');
     const obj = {};
-    const ut = _.get(request, 'header.token');
-    const at = _.get(request, 'header.admin-token');
     if (!ip) throw new BusinessError(ErrorCode.DATA_INVALID, '1-缺少生成key的参数');
     if (!referer) throw new BusinessError(ErrorCode.DATA_INVALID, '2-缺少生成key的参数');
     if (forward) obj.forward = forward;
@@ -50,8 +48,6 @@ class RkService extends CrudService {
     if (query) obj.query = query;
     if (body) obj.body = body;
     if (userAgent) obj.userAgent = userAgent;
-    if (ut) obj.ut = ut;
-    if (at) obj.at = at;
     obj.ip = ip;
     obj.referer = referer;
     return obj;