| | |
| | | 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; |