hunter-open-sdk 1.0.1 → 1.0.2
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.
|
@@ -299,8 +299,7 @@ function _checkHasDriver() {
|
|
|
299
299
|
_context3.t1 = 0;
|
|
300
300
|
case 15:
|
|
301
301
|
hasCache = _context3.t1;
|
|
302
|
-
|
|
303
|
-
state = 0;
|
|
302
|
+
state = hasDriver + hasCache;
|
|
304
303
|
_context3.t2 = state;
|
|
305
304
|
_context3.next = _context3.t2 === 3 ? 20 : _context3.t2 === 1 ? 20 : _context3.t2 === 2 ? 21 : 26;
|
|
306
305
|
break;
|
|
@@ -121,7 +121,8 @@ var getGeneralReportCallKit = exports.getGeneralReportCallKit = function getGene
|
|
|
121
121
|
if (reportRes) {
|
|
122
122
|
var reportResObj = JSON.parse(reportRes);
|
|
123
123
|
var Code = reportResObj.Code,
|
|
124
|
-
Data = reportResObj.Data
|
|
124
|
+
Data = reportResObj.Data,
|
|
125
|
+
Message = reportResObj.Message;
|
|
125
126
|
if (Code == 0 && Data) {
|
|
126
127
|
return {
|
|
127
128
|
type: 'getGeneralReportSuccess',
|
|
@@ -137,7 +138,7 @@ var getGeneralReportCallKit = exports.getGeneralReportCallKit = function getGene
|
|
|
137
138
|
data: {
|
|
138
139
|
code: -1,
|
|
139
140
|
data: {},
|
|
140
|
-
message: '获取报告结果为空'
|
|
141
|
+
message: Message || '获取报告结果为空'
|
|
141
142
|
}
|
|
142
143
|
};
|
|
143
144
|
}
|
|
@@ -161,7 +162,8 @@ var getSaaSReportCallKit = exports.getSaaSReportCallKit = function getSaaSReport
|
|
|
161
162
|
if (reportRes) {
|
|
162
163
|
var reportResObj = JSON.parse(reportRes);
|
|
163
164
|
var Code = reportResObj.Code,
|
|
164
|
-
Data = reportResObj.Data
|
|
165
|
+
Data = reportResObj.Data,
|
|
166
|
+
Message = reportResObj.Message;
|
|
165
167
|
if (Code == 0 && Data) {
|
|
166
168
|
return {
|
|
167
169
|
type: 'getSaaSReportSuccess',
|
|
@@ -177,7 +179,7 @@ var getSaaSReportCallKit = exports.getSaaSReportCallKit = function getSaaSReport
|
|
|
177
179
|
data: {
|
|
178
180
|
code: -1,
|
|
179
181
|
data: {},
|
|
180
|
-
message: '获取SaaS报告结果为空'
|
|
182
|
+
message: Message || '获取SaaS报告结果为空'
|
|
181
183
|
}
|
|
182
184
|
};
|
|
183
185
|
}
|