abler-api 0.1.53 → 0.1.54
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 +3 -3
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1212,7 +1212,7 @@ class apiUtil$2 {
|
|
|
1212
1212
|
static async $checkToken(req, res, next) {
|
|
1213
1213
|
try {
|
|
1214
1214
|
await apiUtil$2.checkRequestToken(req);
|
|
1215
|
-
|
|
1215
|
+
next();
|
|
1216
1216
|
} catch (e) {
|
|
1217
1217
|
res.send(err$2.ERROR(e));
|
|
1218
1218
|
}
|
|
@@ -1273,7 +1273,7 @@ class apiUtil$2 {
|
|
|
1273
1273
|
|
|
1274
1274
|
static $signatureVerified(req, res, next) {
|
|
1275
1275
|
req.signatureVerified = true;
|
|
1276
|
-
|
|
1276
|
+
next();
|
|
1277
1277
|
}
|
|
1278
1278
|
/**
|
|
1279
1279
|
* 标识此请求是从前端发过来的,比如移动端、PC浏览器等,区别于SPO一般的服务端后台请求。
|
|
@@ -1455,7 +1455,7 @@ class apiUtil$2 {
|
|
|
1455
1455
|
return res.status(e.status || 500).send(e.error || e);
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
1458
|
-
|
|
1458
|
+
next();
|
|
1459
1459
|
} //#endregion
|
|
1460
1460
|
//region ====一些通用服务功能
|
|
1461
1461
|
|