fix: update DS

This commit is contained in:
y1ndan 2020-12-30 19:20:12 +08:00
parent b403d1eefe
commit 662c02c7e5

View File

@ -44,12 +44,12 @@ class ConfMeta(type):
@property
def app_version(self):
return '2.1.0'
return '2.2.1'
@property
def ua(self):
return 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0_1 like Mac OS X) Apple' \
'WebKit/605.1.15 (KHTML, like Gecko) miHoYoBBS/{}'.format(self.app_version)
'WebKit/605.1.15 (KHTML, like Gecko) miHoYoBBS/2.2.0'
@property
def act_id(self):
@ -134,7 +134,8 @@ class Sign(object):
return md5.hexdigest()
def get_DS(self):
n = self.md5(Conf.app_version)
# n = self.md5(Conf.app_version) # V2.1.0
n = 'cx2y9z9a29tfqvr1qsq6c7yz99b5jsqt'
i = str(int(time.time()))
r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6))
c = self.md5('salt=' + n + '&t='+ i + '&r=' + r)