添加小程序不支持友好提示

This commit is contained in:
CHERWING 2024-05-26 21:06:09 +08:00 committed by GitHub
parent d73799d36c
commit cd288a985f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

15
YLXL.py
View File

@ -1,7 +1,7 @@
# !/usr/bin/python3 # !/usr/bin/python3
# -- coding: utf-8 -- # -- coding: utf-8 --
# 包含甄稀冰淇淋金典SATINE、活力伊利 # 包含甄稀冰淇淋金典SATINE、活力伊利
# cron "5 8 * * *" script-path=xxx.py,tag=匹配cron用 # cron "5 9 * * *" script-path=xxx.py,tag=匹配cron用
# const $ = new Env('伊利系列小程序') # const $ = new Env('伊利系列小程序')
import json import json
import os import os
@ -107,13 +107,16 @@ class RUN:
print(f'{act_name}成功!✅') print(f'{act_name}成功!✅')
site = {'1520': "活力伊利", '1160': '金典SATINE', '1068': '甄稀冰淇淋'} site = {'1520': "活力伊利", '1160': '金典SATINE', '1068': '甄稀冰淇淋'}
registerSource = response.get('data')['registerSource'] registerSource = response.get('data')['registerSource']
siteName = site[registerSource] Log(f'当前Source{registerSource}')
Log(f'当前小程序:【{siteName}') siteName = site.get(registerSource,False)
if not siteName:
Log(f'当前小程序暂不支持请检查抓token的小程序是否在以下列表{site}')
return False
Log(f'当前token所属小程序{siteName}')
nickName = response.get('data')['nickName'] nickName = response.get('data')['nickName']
mobile = response.get('data')['mobile'] mobile = response.get('data')['mobile']
mobile = mobile[:3] + "*" * 4 + mobile[7:] mobile = mobile[:3] + "*" * 4 + mobile[7:]
Log(f">用户名:{nickName}\n>手机号:{mobile}") Log(f">用户名:{nickName}\n>手机号:{mobile}")
return True return True
elif not response: elif not response:
print(f">账号 {self.index}: ck过期 请重新抓取 access-token") print(f">账号 {self.index}: ck过期 请重新抓取 access-token")
@ -274,11 +277,11 @@ if __name__ == '__main__':
export {ENV_NAME}='{CK_NAME}参数值'多账号#或&分割 export {ENV_NAME}='{CK_NAME}参数值'多账号#或&分割
export SCRIPT_UPDATE = 'False' 关闭脚本自动更新默认开启 export SCRIPT_UPDATE = 'False' 关闭脚本自动更新默认开启
注意抓完CK没事儿别打开小程序重新打开小程序请重新抓包 注意抓完CK没事儿别打开小程序重新打开小程序请重新抓包
推荐cron5 7,11,15,20 * * * 推荐cron5 9 * * *
@Author CHERWIN @Author CHERWIN
''') ''')
local_script_name = os.path.basename(__file__) local_script_name = os.path.basename(__file__)
local_version = '2024.05.23' local_version = '2024.05.26'
if IS_DEV: if IS_DEV:
import_Tools() import_Tools()
else: else: