fix: 更新report.py中的后续状态更新逻辑,添加图片链接以增强信息完整性

This commit is contained in:
晓丰 2025-06-15 11:05:49 +08:00
parent d5ae21e320
commit 81780ecd0a

View File

@ -40,7 +40,7 @@ while True:
logger.logger.info(f"subsequent id:{rs_id},report_id:{r_id} ") logger.logger.info(f"subsequent id:{rs_id},report_id:{r_id} ")
try: try:
subsequent_status, info = d.report_follow_up(r_id) subsequent_status, info = d.report_follow_up(r_id)
db.update_subsequent_status_by_id(rs_id, subsequent_status, info) db.update_subsequent_status_by_id(rs_id, subsequent_status, f"http://123.58.197.91:5000/image/{info}")
except Exception as e: except Exception as e:
logger.logger.error(f"ID:{rs_id}, e:{e}") logger.logger.error(f"ID:{rs_id}, e:{e}")
db.update_subsequent_status_by_id(rs_id, 1, str(e)) db.update_subsequent_status_by_id(rs_id, 1, str(e))