@yunzhanghu/sdk-nodejs 1.0.10 → 1.0.11
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/.gitlab-ci.yml +7 -0
- package/package.json +2 -2
- package/src/common/client.ts +1 -1
- package/yzh/common/client.js +1 -1
package/.gitlab-ci.yml
ADDED
package/package.json
CHANGED
package/src/common/client.ts
CHANGED
|
@@ -252,7 +252,7 @@ export class YZHClient {
|
|
|
252
252
|
const { data: axiosData } = result;
|
|
253
253
|
let response = axiosData;
|
|
254
254
|
// 需解密
|
|
255
|
-
if (encryption) {
|
|
255
|
+
if (encryption && response?.data) {
|
|
256
256
|
response = { ...response, data: this.decrypt(response.data) };
|
|
257
257
|
}
|
|
258
258
|
return response;
|
package/yzh/common/client.js
CHANGED
|
@@ -302,7 +302,7 @@ class YZHClient {
|
|
|
302
302
|
const { data: axiosData } = result;
|
|
303
303
|
let response = axiosData;
|
|
304
304
|
// 需解密
|
|
305
|
-
if (encryption) {
|
|
305
|
+
if (encryption && (response === null || response === void 0 ? void 0 : response.data)) {
|
|
306
306
|
response = { ...response, data: this.decrypt(response.data) };
|
|
307
307
|
}
|
|
308
308
|
return response;
|