2025-06-07 10:45:09 +08:00
|
|
|
{
|
|
|
|
|
"app": {
|
|
|
|
|
"name": "腾智微丝产线包装系统",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"features": {
|
2025-06-30 09:58:16 +08:00
|
|
|
"enable_serial_ports": true,
|
2025-06-13 15:57:26 +08:00
|
|
|
"enable_keyboard_listener": false,
|
2025-06-07 14:10:32 +08:00
|
|
|
"enable_camera": false
|
2025-06-16 13:21:17 +08:00
|
|
|
},
|
2025-07-19 10:29:10 +08:00
|
|
|
"base_url": "http://localhost:8085",
|
2025-07-19 21:30:51 +08:00
|
|
|
"mode": "api"
|
2025-06-07 10:45:09 +08:00
|
|
|
},
|
2025-06-16 17:17:55 +08:00
|
|
|
"apis": {
|
2025-06-18 15:48:13 +08:00
|
|
|
"get_tray_info": "/apjt/xcsc/tpda/getByTp_note/",
|
|
|
|
|
"get_gc_info": "/jsjt/xcsc/tprk/getBZGCInfoToWsbz.do",
|
|
|
|
|
"get_order_info": "/jsjt/xcsc/tprk/getXsddBzrkGridListToWsbz.do",
|
2025-06-19 08:40:16 +08:00
|
|
|
"add_order_info": "/jsjt/xcsc/tprk/bzrkAdd01.do",
|
2025-07-20 15:34:17 +08:00
|
|
|
"remove_order_info": "/jsjt/xcsc/tprk/removeByOrder.do",
|
2025-07-14 15:44:16 +08:00
|
|
|
"get_xpack": "/jsjt/xcsc/tprk/getXpackToWsbz.do",
|
2025-07-19 10:29:10 +08:00
|
|
|
"ismt_option": "/jsjt/xcsc/tprk/ismtOptioTonWsbz.do",
|
2025-07-19 13:17:24 +08:00
|
|
|
"get_params": "/select/getcombcodeWsbz.do",
|
2025-07-21 13:34:27 +08:00
|
|
|
"get_luno": "/common/luno/getLunoListWsbz.do",
|
2025-07-23 15:15:38 +08:00
|
|
|
"get_order_info_by_xpack": "/jsjt/xcsc/tprk/getXsddBzrkGridListByXpackToWsbz.do",
|
2025-07-24 00:25:12 +08:00
|
|
|
"get_package_statistics": "/jsjt/xcsc/tprk/getBzNumByOrderidWszb.do",
|
|
|
|
|
"get_tray_package_statistics": "/jsjt/xcsc/tprk/getBzNumByTrayWszb.do"
|
2025-06-16 17:17:55 +08:00
|
|
|
},
|
2025-06-07 10:45:09 +08:00
|
|
|
"database": {
|
2025-06-13 17:14:03 +08:00
|
|
|
"default": "sqlite",
|
|
|
|
|
"sources": {
|
|
|
|
|
"sqlite": {
|
|
|
|
|
"path": "db/jtDB.db",
|
|
|
|
|
"description": "默认SQLite数据库"
|
|
|
|
|
},
|
|
|
|
|
"postgresql": {
|
2025-06-19 08:40:16 +08:00
|
|
|
"host": "221.229.106.186",
|
|
|
|
|
"port": "54321",
|
|
|
|
|
"user": "tzwalechat",
|
|
|
|
|
"password": "jsjt@2024",
|
|
|
|
|
"name": "tz_tzwalechat",
|
2025-06-13 17:14:03 +08:00
|
|
|
"description": "PostgreSQL数据库"
|
|
|
|
|
},
|
|
|
|
|
"mysql": {
|
|
|
|
|
"host": "localhost",
|
|
|
|
|
"port": "3306",
|
|
|
|
|
"user": "root",
|
|
|
|
|
"password": "",
|
|
|
|
|
"name": "jtDB",
|
|
|
|
|
"description": "MySQL数据库"
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-07 14:10:32 +08:00
|
|
|
},
|
|
|
|
|
"camera": {
|
|
|
|
|
"enabled": false,
|
|
|
|
|
"default_exposure": 20000,
|
|
|
|
|
"default_gain": 10,
|
2025-07-07 15:33:56 +08:00
|
|
|
"default_framerate": 30,
|
|
|
|
|
"local_mode": {
|
|
|
|
|
"enabled": true,
|
|
|
|
|
"folder_path": "/Users/meng/Downloads/images",
|
|
|
|
|
"framerate": 15,
|
|
|
|
|
"loop": true,
|
|
|
|
|
"file_patterns": [
|
|
|
|
|
".jpg",
|
|
|
|
|
".jpeg",
|
|
|
|
|
".png",
|
|
|
|
|
".bmp"
|
|
|
|
|
]
|
|
|
|
|
}
|
2025-06-10 16:13:22 +08:00
|
|
|
},
|
|
|
|
|
"modbus": {
|
2025-07-01 09:36:16 +08:00
|
|
|
"host": "localhost",
|
|
|
|
|
"port": "5020"
|
2025-06-12 17:29:35 +08:00
|
|
|
},
|
2025-06-17 14:12:34 +08:00
|
|
|
"serial": {
|
|
|
|
|
"keyboard": {
|
|
|
|
|
"trigger_key": "Key.page_up"
|
|
|
|
|
},
|
|
|
|
|
"mdz": {
|
2025-06-12 17:29:35 +08:00
|
|
|
"bit": 10,
|
|
|
|
|
"code": "mdz",
|
|
|
|
|
"data_bits": 8,
|
|
|
|
|
"parity": "N",
|
|
|
|
|
"port": "9600",
|
|
|
|
|
"query_cmd": "01 03 00 01 00 07 55 C8",
|
|
|
|
|
"query_interval": 5,
|
|
|
|
|
"ser": "COM5",
|
|
|
|
|
"stop_bits": 1,
|
|
|
|
|
"timeout": 1
|
2025-06-17 14:12:34 +08:00
|
|
|
},
|
|
|
|
|
"cz": {
|
2025-06-12 17:29:35 +08:00
|
|
|
"bit": 10,
|
|
|
|
|
"code": "cz",
|
|
|
|
|
"data_bits": 8,
|
|
|
|
|
"parity": "N",
|
|
|
|
|
"port": "9600",
|
|
|
|
|
"ser": "COM2",
|
|
|
|
|
"stable_threshold": 10,
|
|
|
|
|
"stop_bits": 1,
|
|
|
|
|
"timeout": 1
|
2025-06-30 09:58:16 +08:00
|
|
|
},
|
2025-07-07 15:33:56 +08:00
|
|
|
"xj": {
|
|
|
|
|
"bit": 10,
|
|
|
|
|
"code": "xj",
|
|
|
|
|
"data_bits": 8,
|
|
|
|
|
"parity": "N",
|
|
|
|
|
"port": "19200",
|
|
|
|
|
"query_cmd": "01 41 0d",
|
2025-07-23 10:46:39 +08:00
|
|
|
"query_interval": 1,
|
2025-07-07 15:33:56 +08:00
|
|
|
"auto_query": true,
|
|
|
|
|
"ser": "COM3",
|
|
|
|
|
"stop_bits": 1,
|
|
|
|
|
"timeout": 1
|
|
|
|
|
},
|
2025-06-30 09:58:16 +08:00
|
|
|
"scanner": {
|
|
|
|
|
"code": "scanner",
|
|
|
|
|
"data_bits": 8,
|
|
|
|
|
"parity": "N",
|
|
|
|
|
"port": "9600",
|
|
|
|
|
"ser": "COM3",
|
|
|
|
|
"stop_bits": 1,
|
|
|
|
|
"timeout": 1
|
2025-06-12 17:29:35 +08:00
|
|
|
}
|
2025-06-26 18:26:22 +08:00
|
|
|
},
|
|
|
|
|
"electricity": {
|
2025-07-23 15:15:38 +08:00
|
|
|
"auto_start": true,
|
2025-07-15 16:40:31 +08:00
|
|
|
"interval_minutes": 30
|
2025-06-07 10:45:09 +08:00
|
|
|
}
|
|
|
|
|
}
|