feat: Add AI project summary and coordinate constants for Douyin Fudai
- Created AI_PROJECT_SUMMARY.md for quick understanding of project structure, data flow, key interfaces, and verification points. - Added key modules and data flow overview for automated participation in Douyin Fudai lottery. - Introduced a JSON schema example for configuration and provided quick validation steps. - Updated coordinate constants in coords.py for various cropping areas related to Fudai details, ensuring centralized management of coordinates. - Generated a new actions log file for tracking actions performed by the application.
This commit is contained in:
1 parent
0b5f150691
commit
25ed50cc3c
19 files changed
+1829
-654
No files matched your search
@@ -179,4 +179,14 @@ def extract_prize_value_yuan(text: str) -> float:
|
||||
except ValueError:
|
||||
continue
|
||||
|
||||
return max(values) if values else 0.0
|
||||
if values:
|
||||
return max(values)
|
||||
|
||||
fallback_values: list[float] = []
|
||||
for candidate in re.findall(r"\d+(?:,\d+)*(?:\.\d+)?", s):
|
||||
normalized = candidate.replace(",", "")
|
||||
try:
|
||||
fallback_values.append(float(normalized))
|
||||
except ValueError:
|
||||
continue
|
||||
return max(fallback_values) if fallback_values else 0.0
|
||||
Reference in new issue
Block a user