修复超值福利签到失败导致的错误

This commit is contained in:
2024-09-28 14:51:17 +08:00 committed by GitHub
parent 06468e0e46
commit f40a4d2a70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,6 +165,7 @@ class RUN:
url = 'https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberActLengthy~redPacketActivityService~superWelfare~receiveRedPacket'
response = self.do_request(url, data=json_data)
# print(response)
try:
if response.get('success') == True:
gift_list = response.get('obj', {}).get('giftList', [])
if response.get('obj', {}).get('extraGiftList', []):
@ -176,6 +177,8 @@ class RUN:
else:
error_message = response.get('errorMessage') or json.dumps(response) or '无返回'
print(f'超值福利签到失败: {error_message}')
except Exception as e:
print(f'超值福利签到失败: {e}')
def get_SignTaskList(self, END=False):
if not END: print(f'>>>开始获取签到任务列表')