abler-api 0.1.55 → 0.1.56

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.
@@ -254,11 +254,15 @@ class apiUtil$2 {
254
254
  */
255
255
 
256
256
 
257
- static apiFail(error, req) {
257
+ static apiFail(error, req, spOrderNum) {
258
258
  configNeeded();
259
259
  let response = err$2.ERROR(error, err$2.errorLangParamFlag + ppUtil$4.getMsgLang(req));
260
260
  response.datetime = new Date();
261
261
 
262
+ if (spOrderNum) {
263
+ response.spOrderNum = spOrderNum;
264
+ }
265
+
262
266
  if (req && req.headers) {
263
267
  let userAgent = req.headers["user-agent"];
264
268
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",