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

Function main

wxapp/quanmianshidai.py:754–791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

752
753
754def main():
755 var_name = 'qmzmh'
756 tokens = get_env_variable(var_name)
757 if not tokens:
758 return
759
760 total_tokens = len(tokens)
761
762 if total_tokens > 20:
763 print("账号数量超过20个,不执行操作。")
764 return
765
766
767 for index, token_info in enumerate(tokens, start=1):
768 parts = token_info.split('#')
769 if len(parts) < 2:
770 print("令牌格式不正确。跳过处理。")
771 continue
772
773 code = parts[0]
774 token = parts[1]
775 remark = parts[2] if len(parts) > 2 else ""
776 print()
777 print(f"------账号{index}/{total_tokens},备注: {remark}-------")
778
779 phone, user_id = login(code, token)
780 if phone and user_id: # 检查是否成功获取电话号码和用户ID
781 # 进行后续任务
782 cscscs(code, token)
783 #sj_yg(code, token)#收集阳光
784 #syyg(code, token)#使用阳光
785 jscz(code, token) #浇水
786 pdrw(code, token) #任务判断
787 friend_user_ids = hyid(code, token)
788 if friend_user_ids:
789 process_all_friends(friend_user_ids, code, token) # 正确传入朋友ID列表
790 else:
791 print("登录失败或获取用户信息失败,跳过当前账号的后续操作。")
792
793
794

Callers 1

quanmianshidai.pyFile · 0.70

Calls 8

get_env_variableFunction · 0.85
cscscsFunction · 0.85
jsczFunction · 0.85
pdrwFunction · 0.85
hyidFunction · 0.85
process_all_friendsFunction · 0.85
loginFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected