Skip to content

Commit

Permalink
fix一个小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Jun 9, 2024
1 parent 7e203b7 commit abb8951
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions config-anticheat.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import io
import os

from utils import *
import zipfile, shutil
import urllib.request

script_license()

Expand Down
5 changes: 1 addition & 4 deletions update-log.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from urllib import request
import urllib.parse
from utils import *
import json

Expand All @@ -11,8 +9,7 @@ def update_log(content):
data = {
"content": content
}
datas = urllib.parse.urlencode(data).encode('utf-8')
res = json.loads(request.urlopen(request.Request(api, data=datas)).read().decode('utf-8'))
res = json.loads(requests.post(api, data=data).content)
if res["success"]:
return res["url"]
else:
Expand Down

0 comments on commit abb8951

Please sign in to comment.