自动化立体仓库 - WMS系统
野心家
2023-06-13 d7e71e9eaf18c27fc328b06204ba4bec152608b6
src/main/java/com/zy/asrs/utils/PostMesDataUtils.java
@@ -18,6 +18,10 @@
    private ApiLogService apiLogService = new ApiLogServiceImpl();
    public ReturnT<String> postMesData(String name,String URL,String mesPath, Object combParam){
//        if (true){
//            System.out.println("name:"+name+",URL:"+URL+",mesPath:"+mesPath+",combParam:"+combParam);
//            return SUCCESS;
//        }
        if(combParam != null){
            String response = "";
            boolean success = false;
@@ -31,7 +35,9 @@
                        .setJson(JSON.toJSONString(combParam))
                        .build()
                        .doPost();
                System.out.println("response:"+response);
                JSONObject jsonObject = JSON.parseObject(response);
                if (jsonObject.getInteger("code").equals(200)) {
                    success = true;
                } else {
@@ -54,7 +60,8 @@
                            response,
                            success
                    );
                } catch (Exception e) { log.error("", e); }
                } catch (Exception e) {
                    log.error("", e); }
            }
        }
        return SUCCESS;