Forráskód Böngészése

```
fix(config): 更新配置文件中的主机地址

将host地址从测试环境IP 10.56.42.17修改为本地回环地址127.0.1,
以便在本地开发环境中正常运行应用

fix(mcu): 注释掉设备控制中的硬编码点位名称

临时注释掉DeviceControl类中对point_name的硬编码设置,
避免覆盖动态配置的点位名称值

feat(camera): 在程序项中添加摄像头键值到智能拍摄日志

在ProgramItem类的CameraShooter调用中增加CameraKey参数到打印日志,
便于调试摄像头相关功能

feat(socket): 添加消息处理器中的点位名称和值的日志记录

在handlerSend函数中增加日志输出,记录启动相机或关闭实时预览时的
PointName和value参数值,方便问题排查
```

rambo 2 hete
szülő
commit
5bfbb548d9

+ 1 - 1
python/config.ini

@@ -4,7 +4,7 @@ app_name=智慧拍-后端应用
 # 应用版本号
 version=1.0.0
 # 应用host地址
-host=10.56.42.17
+host=127.0.0.1
 # 应用服务启动名称
 app_run=api:app
 # 端口号

+ 1 - 1
python/mcu/DeviceControl.py

@@ -1618,7 +1618,7 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
                     new_init_config["shoe_upturn"] = False
                     new_init_config["pre_delay"] = 0.0
                     new_init_config["after_delay"] = 0.0
-                    new_init_config["point_name"] = "A"
+                    # new_init_config["point_name"] = "A"
                     new_init_config["is_move_device"] = True
                     new_init_config["led_switch"] = True
                     new_init_config["turntable_angle"] = 0.0

+ 1 - 1
python/mcu/ProgramItem.py

@@ -407,7 +407,7 @@ class ProgramItem(BaseClass):
                     None,
                 )
                 CameraKey = camera_configs[self.point_name].get("CameraKey",None)
-                print("smart shooter CameraShooter", record_id, goods_art_no)
+                print("smart shooter CameraShooter", record_id, goods_art_no, CameraKey)
                 await self.smart_shooter.CameraShooter(
                     msg_type="run_mcu",
                     goods_art_no=goods_art_no,

+ 1 - 0
python/sockets/message_handler.py

@@ -439,6 +439,7 @@ async def handlerSend(
                 PointName = "A"
             else:
                 PointName = data.get("point_name", "A")
+            logger.info(f"启动相机或关闭实时预览,PointName:{PointName},value:{value}")
             camera_configs = settings.getSysConfigs(
                 "camera_configs",
                 "iso_config",