fix: update DS
This commit is contained in:
parent
b403d1eefe
commit
662c02c7e5
@ -44,12 +44,12 @@ class ConfMeta(type):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def app_version(self):
|
def app_version(self):
|
||||||
return '2.1.0'
|
return '2.2.1'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ua(self):
|
def ua(self):
|
||||||
return 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0_1 like Mac OS X) Apple' \
|
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
|
@property
|
||||||
def act_id(self):
|
def act_id(self):
|
||||||
@ -134,7 +134,8 @@ class Sign(object):
|
|||||||
return md5.hexdigest()
|
return md5.hexdigest()
|
||||||
|
|
||||||
def get_DS(self):
|
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()))
|
i = str(int(time.time()))
|
||||||
r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6))
|
r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6))
|
||||||
c = self.md5('salt=' + n + '&t='+ i + '&r=' + r)
|
c = self.md5('salt=' + n + '&t='+ i + '&r=' + r)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user