更新 YYB/YYB_HSY.py
This commit is contained in:
+6
-1
@@ -283,7 +283,12 @@ def notify(lines):
|
|||||||
sys.path.insert(0, path)
|
sys.path.insert(0, path)
|
||||||
try:
|
try:
|
||||||
from notify import send
|
from notify import send
|
||||||
send("回收猿签到提现", "\n".join(lines))
|
# 兼容字符串与列表:字符串直接发送,列表按行拼接(禁止对字符串做逐字 join)
|
||||||
|
if isinstance(lines, (list, tuple)):
|
||||||
|
content = "\n".join(lines)
|
||||||
|
else:
|
||||||
|
content = lines
|
||||||
|
send("回收猿签到提现", content)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print(f"[通知] 发送失败(不影响任务):{exc}")
|
print(f"[通知] 发送失败(不影响任务):{exc}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user