@zwa73/utils 1.0.171 → 1.0.172
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/UtilCom.d.ts +1 -1
- package/dist/UtilCom.js +1 -1
- package/package.json +1 -1
- package/src/UtilCom.ts +3 -3
package/dist/UtilCom.d.ts
CHANGED
package/dist/UtilCom.js
CHANGED
package/package.json
CHANGED
package/src/UtilCom.ts
CHANGED
|
@@ -33,7 +33,7 @@ type HttpResp = {
|
|
|
33
33
|
/**响应状态码 */
|
|
34
34
|
statusCode?: number;
|
|
35
35
|
/**响应数据 */
|
|
36
|
-
data:
|
|
36
|
+
data: JObject;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**网络工具 */
|
|
@@ -86,12 +86,12 @@ function comReq(json:JObject,comReqOpt:ComRequestOption):Promise<HttpResp|undefi
|
|
|
86
86
|
|
|
87
87
|
res.on('end',()=>{
|
|
88
88
|
if(resdata==""){
|
|
89
|
-
SLogger.warn(funcName
|
|
89
|
+
SLogger.warn(`${funcName} 接收反馈错误: resdata 为空`);
|
|
90
90
|
resolve(undefined);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
try{
|
|
94
|
-
const obj = JSON.parse(resdata);
|
|
94
|
+
const obj = JSON.parse(resdata) as JObject;
|
|
95
95
|
SLogger.http(`${funcName} 接受信息:`,UtilFunc.stringifyJToken(obj));
|
|
96
96
|
resolve({
|
|
97
97
|
headers: res.headers,
|