修改第三方库存功能连接不上第三方提示

master
郑明梁 2 years ago
parent e77649aec6
commit e9723e430e

@ -1,5 +1,6 @@
package com.glxp.api.controller.thrsys;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.github.pagehelper.PageInfo;
@ -187,6 +188,9 @@ public class ThrInvProductsController {
try {
String response = httpOkClient.uCloudPost(url, thrOnhandRequest, thrSystemEntity);
if(StrUtil.isEmpty(response)){
return ResultVOUtils.error(500, "连接第三方系统接口服务出错!");
}
BaseResponse<PageSimpleResponse<ThrInvProductResponse>> udiDlDeviceResponse =
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThrInvProductResponse>>>() {
});

Loading…
Cancel
Save