abler-api 0.1.51 → 0.1.53
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.
- package/dist/cjs/pp-util.js +2 -2
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -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.
|
|
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) {
|
|
@@ -1273,7 +1273,7 @@ class apiUtil$2 {
|
|
|
1273
1273
|
|
|
1274
1274
|
static $signatureVerified(req, res, next) {
|
|
1275
1275
|
req.signatureVerified = true;
|
|
1276
|
-
return
|
|
1276
|
+
return next();
|
|
1277
1277
|
}
|
|
1278
1278
|
/**
|
|
1279
1279
|
* 标识此请求是从前端发过来的,比如移动端、PC浏览器等,区别于SPO一般的服务端后台请求。
|