Prechádzať zdrojové kódy

相机导入修改和筛选

gao.qiang 2 mesiacov pred
rodič
commit
1d73c9b862

+ 1 - 1
business-service/src/main/java/com/ozs/service/utils/PublishCallback.java

@@ -93,8 +93,8 @@ public class PublishCallback implements MqttCallback {
                 for (int i = 0; i < jsonArray.size(); i++) {
                     JSONObject object = jsonArray.getJSONObject(i);
                     code = (Integer) object.get("code");
+                    logger.info("code-------->" + code);
                 }
-                logger.info("code-------->"+code);
                 CallbackUtil.callback(deviceSn, code, "");
             } catch (Exception e) {
                 logger.error(e.getMessage());

+ 2 - 2
hazard-admin/src/main/java/com/ozs/web/controller/accountmanagment/BaseCameraManagementController.java

@@ -1013,8 +1013,8 @@ public class BaseCameraManagementController extends BaseController {
      * @param code
      * @return
      */
-    @GetMapping("/switchFrameRate/{code}/{fps}")
-    public AjaxResult switchFrameRate(@PathVariable String code,String fps){
+    @GetMapping("/switchFrameRate")
+    public AjaxResult switchFrameRate(@RequestParam("code") String code,@RequestParam("fps") String fps){
         BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
                 .eq(BaseCameraManagement::getCameraCode, code));
         PublishClient.confidenceCoefficient(baseCameraManagement,fps);