自动化立体仓库 - WCS系统
*
lsh
2024-10-23 cb0ee1254500db12525f1288c47d7499677d4eb7
src/main/java/com/zy/asrs/controller/OpenController.java
@@ -56,9 +56,25 @@
        return openService.wcsTaskDistribution(param);
    }
    /**
     * 数据同步
     */
    @PostMapping("/status/cs/default/v1")
    @AppAuth(memo = "WCS数据同步")
    public synchronized R wcsTaskStatus(@RequestHeader(required = false) String appkey,
                                              @RequestBody Long timestamp,
                                              HttpServletRequest request) {
        auth(appkey, timestamp, request);
        if (Cools.isEmpty(timestamp)) {
            return R.parse(BaseRes.PARAM);
        }
        return openService.wcsTaskStatus(timestamp);
    }
    private void auth(String appkey, Object obj, HttpServletRequest request) {
        log.info("{}接口被访问;appkey:{};请求数据:{}", "open/sensorType/list/auth/v1", appkey, JSON.toJSONString(obj));
//        log.info("{}接口被访问;appkey:{};请求数据:{}", "open/sensorType/list/auth/v1", appkey, JSON.toJSONString(obj));
        request.setAttribute("cache", obj);
        if (!auth) {
            return;