修改
This commit is contained in:
Binary file not shown.
@@ -116,11 +116,13 @@ public class LmsToSapServiceImpl implements LmsToSapService {
|
|||||||
|
|
||||||
// String url = acsUrl + api;
|
// String url = acsUrl + api;
|
||||||
String url = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("SAP_URL").getValue();
|
String url = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("SAP_URL").getValue();
|
||||||
|
String token = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("SAP_TOKEN").getValue();
|
||||||
|
String sap_client = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("SAP_CLIENT").getValue();
|
||||||
String api = "/sap/center/wms/005";
|
String api = "/sap/center/wms/005";
|
||||||
url = url + api;
|
url = url + api;
|
||||||
try {
|
try {
|
||||||
String resultMsg = HttpRequest.post(url).header("TOKEN","877734686FA61EDD99E9D85A96D91E14")
|
String resultMsg = HttpRequest.post(url).header("TOKEN",token)
|
||||||
.header("sap-client","130")
|
.header("sap-client",sap_client)
|
||||||
.body(String.valueOf(jo))
|
.body(String.valueOf(jo))
|
||||||
.execute().body();
|
.execute().body();
|
||||||
result = JSONObject.parseObject(resultMsg);
|
result = JSONObject.parseObject(resultMsg);
|
||||||
|
|||||||
Reference in New Issue
Block a user