MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / get_env

Function get_env

daily/quark.py:44–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43# 获取环境变量
44def get_env():
45 # 判断 COOKIE_QUARK是否存在于环境变量
46 if "COOKIE_QUARK" in os.environ:
47 # 读取系统变量以 \n 或 && 分割变量
48 cookie_list = re.split('\n|&&', os.environ.get('COOKIE_QUARK'))
49 else:
50 # 标准日志输出
51 print('❌未添加COOKIE_QUARK变量')
52 send('夸克自动签到', '❌未添加COOKIE_QUARK变量')
53 # 脚本退出
54 sys.exit(0)
55
56 return cookie_list
57
58
59class Quark:

Callers 1

mainFunction · 0.85

Calls 3

sendFunction · 0.90
printFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected