abler-api 0.1.50 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -500,7 +500,7 @@ class apiUtil$2 {
500
500
  const params = apiUtil$2.extractParams(req);
501
501
  req.accessToken = req.accessToken || apiUtil$2.extractToken(req);
502
502
 
503
- if (req.accessToken === MD5(ppUtil$4.idNumDisturbing)) {
503
+ if (req.accessToken === MD5(ppUtil$4.commonHashDisturbing)) {
504
504
  //todo: 检查IP
505
505
  params.__internal__ = true;
506
506
  req.ignoreToken = true; // if (params.idNum || params.personId) {
@@ -1433,7 +1433,7 @@ class apiUtil$2 {
1433
1433
  };
1434
1434
  }
1435
1435
 
1436
- if (!(await apiUtil$2._validateBasicAuth(authorization.name, authorization.pass))) {
1436
+ if (!(await apiUtil$2._validateBasicAuth(authorization.name, authorization.pass, req, res, next))) {
1437
1437
  throw {
1438
1438
  status: 401,
1439
1439
  error: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",