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.
- package/dist/cjs/pp-util.js +5 -1
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -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
|
|