add:mes接口

This commit is contained in:
2024-10-09 17:40:09 +08:00
parent 732eed01a7
commit 219d79da7c
21 changed files with 1806 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ package org.nl.acs.ext.wms;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import org.nl.acs.config.AcsConfig;
import org.nl.acs.ext.RequestAdapter;
import org.nl.acs.ext.ResponseAdapter;
@@ -50,10 +51,12 @@ public class LmsHttpUtil {
return new UnifiedResponse<>(false, "未开启连接该系统!");
}
try {
JSONArray array = new JSONArray();
array.add(requestParam);
String body = HttpRequest
.post(REQUEST_ADAPTER.getUrl() + path)
.setConnectionTimeout(5000)
.body(JSON.toJSONString(requestParam))
.body(JSON.toJSONString(array))
.execute()
.body();
return RESPONSE_ADAPTER.adapt(body, null);