tools-min-ns 1.9.11 → 1.9.12
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/README.md +5 -0
- package/esm/request/mgop/index.js +3 -3
- package/lib/request/mgop/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,8 +55,8 @@ var Mgop = /*#__PURE__*/function () {
|
|
|
55
55
|
_proto.createSuccessCb = function createSuccessCb(data) {
|
|
56
56
|
return this.createParam(data, RET_MESSAGE);
|
|
57
57
|
};
|
|
58
|
-
_proto.createFailCb = function createFailCb(ret) {
|
|
59
|
-
return this.createParam(
|
|
58
|
+
_proto.createFailCb = function createFailCb(data, ret) {
|
|
59
|
+
return this.createParam(data, ret);
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* 签名处理
|
|
@@ -120,7 +120,7 @@ var Mgop = /*#__PURE__*/function () {
|
|
|
120
120
|
return '';
|
|
121
121
|
default:
|
|
122
122
|
warning(_NAME_, 'response fail', formatCode);
|
|
123
|
-
throw this.createFailCb(response.ret);
|
|
123
|
+
throw this.createFailCb(response.data || {}, response.ret);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
_proto.processRequest = function processRequest() {
|
|
@@ -66,8 +66,8 @@ var Mgop = /*#__PURE__*/function () {
|
|
|
66
66
|
_proto.createSuccessCb = function createSuccessCb(data) {
|
|
67
67
|
return this.createParam(data, RET_MESSAGE);
|
|
68
68
|
};
|
|
69
|
-
_proto.createFailCb = function createFailCb(ret) {
|
|
70
|
-
return this.createParam(
|
|
69
|
+
_proto.createFailCb = function createFailCb(data, ret) {
|
|
70
|
+
return this.createParam(data, ret);
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* 签名处理
|
|
@@ -131,7 +131,7 @@ var Mgop = /*#__PURE__*/function () {
|
|
|
131
131
|
return '';
|
|
132
132
|
default:
|
|
133
133
|
warning(_NAME_, 'response fail', formatCode);
|
|
134
|
-
throw this.createFailCb(response.ret);
|
|
134
|
+
throw this.createFailCb(response.data || {}, response.ret);
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
_proto.processRequest = function processRequest() {
|