feat: add automation module for background task handling
This commit is contained in:
@@ -141,3 +141,8 @@ class ShopeeBot:
|
|||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return {"status": "error", "message": f"Lỗi không xác định: {str(e)}"}
|
return {"status": "error", "message": f"Lỗi không xác định: {str(e)}"}
|
||||||
|
|
||||||
|
finally:
|
||||||
|
# Luôn thoát ra màn hình chính (Homescreen) sau khi lấy xong (hoặc lỗi)
|
||||||
|
logging.info("Thoát ra màn hình chính (Homescreen)...")
|
||||||
|
self.d.press("home")
|
||||||
|
|||||||
Reference in New Issue
Block a user