mirror of
https://github.com/WhaleFell/SMSBoom.git
synced 2026-05-09 23:12:40 +08:00
🐞 fix: 修复云函数
This commit is contained in:
9
index.py
9
index.py
@@ -3,11 +3,14 @@
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
path = Path(__file__).parent.absolute()
|
||||
path = os.path.join(os.getcwd(), "src")
|
||||
|
||||
def main_handler(event, context):
|
||||
print("云函数执行中.....")
|
||||
print(f"当前目录:{path}")
|
||||
print(f"云函数路径:{path}")
|
||||
os.chdir(path)
|
||||
# 自定义命令
|
||||
os.system("python3 smsboom.py -p 19820294268 -t 16")
|
||||
os.system("python3 smsboom.py run -p 19820294268 -t 16")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main_handler(1,2)
|
||||
Reference in New Issue
Block a user