add:mes接口
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user