Skip to content

Commit 9a54631

Browse files
committed
Update YdszTool.py
1 parent ff8d7fb commit 9a54631

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

YdszTool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import ssl
12
import urllib.parse
23
import urllib.request
34
from math import floor
@@ -18,6 +19,7 @@ class Ydsz:
1819
def __init__(self):
1920
# Disable SSL warnings
2021
disable_warnings()
22+
ssl._create_default_https_context = ssl._create_unverified_context
2123

2224
# 参数
2325
self.username, self.password, self.shopName, self.token, self.r1_type = '', '', '', '', ''
@@ -59,6 +61,7 @@ def sec_run():
5961
print(datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
6062
for _ in range(100):
6163
if self.main():
64+
flag = False
6265
break
6366

6467
def main_run():

0 commit comments

Comments
 (0)