Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
实际进行操作的代码 -- 修复bug,略作调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljzd-PRO authored Oct 11, 2021
1 parent 6e100e0 commit 648f3bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def start(userdata, setting):

stuid = userdata["uid"]
stoken = userdata["stoken"]
id = userdata["id"]
if stuid == '' or None:
print(to_log("ERROR", "请设置用户Cookies数据!"))
return "error"
Expand All @@ -241,7 +242,7 @@ def start(userdata, setting):
print(to_log("ERROR", "请设置游戏板块module_id的值!"))
return "error"

print(to_log("INFO", "用户 {0}:开始任务。".format(stuid)))
print(to_log("INFO", "用户 uid_{0} - {1}:任务开始。".format(id, stuid)))

fid_list = {
'1': '1',
Expand Down Expand Up @@ -279,7 +280,7 @@ def start(userdata, setting):
fid = int(fid_list[str(module_id)])
miyoushe_forumPost(fid)

print(to_log("INFO", "用户 {0}:任务结束。".format(stuid)))
print(to_log("INFO", "用户 uid_{0} - {1}:任务结束。".format(id, stuid)))
if result_status == "error":
return "error"
else:
Expand Down

0 comments on commit 648f3bb

Please sign in to comment.