mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
remove: 移除【盖乐世社区】签到(cookie 时间过短)
fix: 修复【爱奇艺】非 VIP 会员签到日志错误的问题 fix: 修复【一加手机社区官方论坛】用户名乱码的问题
This commit is contained in:
parent
0d9e22149c
commit
3cc25910a7
1
.github/workflows/deploy_tencent_scf.yml
vendored
1
.github/workflows/deploy_tencent_scf.yml
vendored
@ -59,7 +59,6 @@ jobs:
|
||||
MIMOTION_ACCOUNT_LIST: ${{secrets.MIMOTION_ACCOUNT_LIST}}
|
||||
ACFUN_ACCOUNT_LIST: ${{secrets.ACFUN_ACCOUNT_LIST}}
|
||||
CLOUD189_ACCOUNT_LIST: ${{secrets.CLOUD189_ACCOUNT_LIST}}
|
||||
SAMSUNG_COOKIE_LIST: ${{secrets.SAMSUNG_COOKIE_LIST}}
|
||||
WPS_COOKIE_LIST: ${{secrets.WPS_COOKIE_LIST}}
|
||||
POJIE_COOKIE_LIST: ${{secrets.POJIE_COOKIE_LIST}}
|
||||
|
||||
|
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -56,6 +56,5 @@ jobs:
|
||||
MIMOTION_ACCOUNT_LIST: ${{secrets.MIMOTION_ACCOUNT_LIST}}
|
||||
ACFUN_ACCOUNT_LIST: ${{secrets.ACFUN_ACCOUNT_LIST}}
|
||||
CLOUD189_ACCOUNT_LIST: ${{secrets.CLOUD189_ACCOUNT_LIST}}
|
||||
SAMSUNG_COOKIE_LIST: ${{secrets.SAMSUNG_COOKIE_LIST}}
|
||||
WPS_COOKIE_LIST: ${{secrets.WPS_COOKIE_LIST}}
|
||||
POJIE_COOKIE_LIST: ${{secrets.POJIE_COOKIE_LIST}}
|
@ -52,7 +52,6 @@
|
||||
|签到|[AcFun](https://www.acfun.cn/)|每日签到|每天一次|
|
||||
|签到|[天翼云盘](https://cloud.189.cn/)|每日签到|每天一次|
|
||||
|签到|[WPS](https://www.wps.cn/)|每日签到|每天一次|
|
||||
|签到|[盖乐世社区](http://www.samsungmembers.cn/)|每日签到|每天一次|
|
||||
|签到|[吾爱破解](https://www.52pojie.cn/index.php)|每日签到|每天一次|
|
||||
|签到|联通营业厅|每日签到|每天一次|
|
||||
|签到|Fa米家 APP|连续签到7天总计获得6粒Fa米粒,每月15号23.59分清空Fa米粒。理论一个月最少获得24粒fa米粒。|每天一次|
|
||||
|
@ -112,12 +112,16 @@ class Cloud189CheckIn:
|
||||
msg += f"\n第一次抽奖: {response.text}"
|
||||
else:
|
||||
description = response.json().get("description", "")
|
||||
if description in ["1", 1]:
|
||||
description = "50M空间"
|
||||
msg += f"\n第一次抽奖: 获得{description}"
|
||||
response = session.get(url=url2, headers=headers)
|
||||
if "errorCode" in response.text:
|
||||
msg += f"\n第二次抽奖: {response.text}"
|
||||
else:
|
||||
description = response.json().get("description", "")
|
||||
if description in ["1", 1]:
|
||||
description = "50M空间"
|
||||
msg += f"\n第二次抽奖: 获得{description}"
|
||||
return msg
|
||||
|
||||
@ -133,6 +137,7 @@ class Cloud189CheckIn:
|
||||
else:
|
||||
sign_msg = flag
|
||||
msg = f"【天翼云盘】\n帐号信息: {cloud189_phone}\n{sign_msg}"
|
||||
print(msg)
|
||||
msg_list.append(msg)
|
||||
return msg_list
|
||||
|
||||
|
@ -185,14 +185,6 @@
|
||||
"cloud189_password": "帐号2 密码"
|
||||
}
|
||||
],
|
||||
"SAMSUNG_COOKIE_LIST": [
|
||||
{
|
||||
"samsung_cookie": "帐号1 cookie"
|
||||
},
|
||||
{
|
||||
"samsung_cookie": "帐号2 cookie"
|
||||
}
|
||||
],
|
||||
"WPS_COOKIE_LIST": [
|
||||
{
|
||||
"wps_cookie": "帐号1 cookie"
|
||||
|
@ -30,7 +30,6 @@ if [[ $WWW2NZZ_COOKIE_LIST ]]; then echo "WWW2NZZ_COOKIE_LIST 变量存在,并
|
||||
if [[ $SMZDM_COOKIE_LIST ]]; then echo "SMZDM_COOKIE_LIST 变量存在,并成功赋值" ;else SMZDM_COOKIE_LIST=[]; fi;
|
||||
if [[ $MIMOTION_ACCOUNT_LIST ]]; then echo "MIMOTION_ACCOUNT_LIST 变量存在,并成功赋值" ;else MIMOTION_ACCOUNT_LIST=[]; fi;
|
||||
if [[ $ACFUN_ACCOUNT_LIST ]]; then echo "ACFUN_ACCOUNT_LIST 变量存在,并成功赋值" ;else ACFUN_ACCOUNT_LIST=[]; fi;
|
||||
if [[ $SAMSUNG_COOKIE_LIST ]]; then echo "SAMSUNG_COOKIE_LIST 变量存在,并成功赋值" ;else SAMSUNG_COOKIE_LIST=[]; fi;
|
||||
if [[ $WPS_COOKIE_LIST ]]; then echo "WPS_COOKIE_LIST 变量存在,并成功赋值" ;else WPS_COOKIE_LIST=[]; fi;
|
||||
if [[ $POJIE_COOKIE_LIST ]]; then echo "POJIE_COOKIE_LIST 变量存在,并成功赋值" ;else POJIE_COOKIE_LIST=[]; fi;
|
||||
if [[ $CLOUD189_ACCOUNT_LIST ]]; then echo "CLOUD189_ACCOUNT_LIST 变量存在,并成功赋值" ;else CLOUD189_ACCOUNT_LIST=[]; fi;
|
||||
@ -68,7 +67,6 @@ JSONSTR="{
|
||||
\"MIMOTION_ACCOUNT_LIST\": ${MIMOTION_ACCOUNT_LIST},
|
||||
\"ACFUN_ACCOUNT_LIST\": ${ACFUN_ACCOUNT_LIST},
|
||||
\"CLOUD189_ACCOUNT_LIST\": ${CLOUD189_ACCOUNT_LIST},
|
||||
\"SAMSUNG_COOKIE_LIST\": ${SAMSUNG_COOKIE_LIST},
|
||||
\"WPS_COOKIE_LIST\": ${WPS_COOKIE_LIST},
|
||||
\"POJIE_COOKIE_LIST\": ${POJIE_COOKIE_LIST},
|
||||
\"TIEBA_COOKIE_LIST\": ${TIEBA_COOKIE_LIST}
|
||||
|
@ -46,7 +46,6 @@
|
||||
|_**SMZDM_COOKIE_LIST**_.smzdm_cookie|[什么值得买](https://www.smzdm.com)|Web|什么值得买 每日签到|
|
||||
|_**CLOUD189_ACCOUNT_LIST**_.cloud189_phone|[天翼云盘](https://cloud.189.cn/)|Web| 天翼云盘 手机号|
|
||||
|_**CLOUD189_ACCOUNT_LIST**_.cloud189_password|[天翼云盘](https://cloud.189.cn/)|Web| 天翼云盘 手机号对应的密码|
|
||||
|_**SAMSUNG_COOKIE_LIST**_.samsung_cookie|[盖乐世社区](http://www.samsungmembers.cn/)|Web|盖乐世社区 cookie|
|
||||
|_**WPS_COOKIE_LIST**_.wps_cookie|[WPS](https://www.wps.cn/)|Web| WPS cookie|
|
||||
|_**POJIE_COOKIE_LIST**_.pojie_cookie|[吾爱破解](https://www.52pojie.cn/index.php)|Web| 吾爱破解 cookie|
|
||||
|
||||
@ -363,14 +362,6 @@
|
||||
"cloud189_password": "帐号2 密码"
|
||||
}
|
||||
],
|
||||
"SAMSUNG_COOKIE_LIST": [
|
||||
{
|
||||
"samsung_cookie": "帐号1 cookie"
|
||||
},
|
||||
{
|
||||
"samsung_cookie": "帐号2 cookie"
|
||||
}
|
||||
],
|
||||
"WPS_COOKIE_LIST": [
|
||||
{
|
||||
"wps_cookie": "帐号1 cookie"
|
||||
|
@ -30,12 +30,12 @@ class IQIYICheckIn:
|
||||
res = requests.get(url=url, params=params)
|
||||
if res.json()["code"] == "A00000":
|
||||
try:
|
||||
res_data = res.json()["data"]
|
||||
level = res_data["level"] # VIP 等级
|
||||
growthvalue = res_data["growthvalue"] # 当前 VIP 成长值
|
||||
distance = res_data["distance"] # 升级需要成长值
|
||||
deadline = res_data["deadline"] # VIP 到期时间
|
||||
today_growth_value = res_data["todayGrowthValue"] # 今日成长值
|
||||
res_data = res.json().get("data", {})
|
||||
level = res_data.get("level", 0) # VIP 等级
|
||||
growthvalue = res_data.get("growthvalue", 0) # 当前 VIP 成长值
|
||||
distance = res_data.get("distance", 0) # 升级需要成长值
|
||||
deadline = res_data.get("deadline", "非 VIP 用户") # VIP 到期时间
|
||||
today_growth_value = res_data.get("todayGrowthValue", 0) # 今日成长值
|
||||
msg = (
|
||||
f"VIP 等级: {level}\n当前成长值: {growthvalue}\n"
|
||||
f"升级需成长值: {distance}\n今日成长值: +{today_growth_value}\nVIP 到期时间: {deadline}"
|
||||
|
@ -3,6 +3,7 @@ import json
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
from urllib import parse
|
||||
|
||||
import requests
|
||||
|
||||
@ -92,6 +93,11 @@ class OnePlusBBSCheckIn:
|
||||
oneplusbbs_cookie = oneplusbbs_cookie.get("oneplusbbs_cookie")
|
||||
bbs_uname = re.findall(r"bbs_uname=(.*?);", oneplusbbs_cookie)
|
||||
bbs_uname = bbs_uname[0].split("%7C")[0] if bbs_uname else "未获取到用户信息"
|
||||
try:
|
||||
bbs_uname = parse.unquote(bbs_uname)
|
||||
except Exception as e:
|
||||
print(f"bbs_uname 转换失败: {e}")
|
||||
bbs_uname = bbs_uname
|
||||
sign_msg = self.sign(cookie=oneplusbbs_cookie)
|
||||
draw_msg = self.draw(cookie=oneplusbbs_cookie)
|
||||
msg = f"【一加手机社区官方论坛】\n帐号信息: {bbs_uname}\n签到信息: {sign_msg}\n{draw_msg}"
|
||||
|
@ -1,2 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from samsung.samsung import SamsungCheckIn
|
@ -1,67 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
|
||||
import requests
|
||||
from requests import utils
|
||||
|
||||
|
||||
class SamsungCheckIn:
|
||||
def __init__(self, samsung_cookie_list):
|
||||
self.samsung_cookie_list = samsung_cookie_list
|
||||
|
||||
@staticmethod
|
||||
def sign(session):
|
||||
try:
|
||||
params = {"ramdon": str(int(round(time.time() * 1000)))}
|
||||
user_info = session.get(
|
||||
url=f"http://www.samsungmembers.cn/Shared/CheckUserLogin", params=params
|
||||
).json()
|
||||
username = user_info.get("Data", {}).get("UserName")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
username = "获取用户名失败"
|
||||
try:
|
||||
current = session.post(url="http://www.samsungmembers.cn/Shared/Sign").json()
|
||||
if current.get("State"):
|
||||
data = current.get("Data")
|
||||
msg = f'获得经验 {data.get("EmpricCount")}, 获得星钻 {data.get("CreditCount")}'
|
||||
else:
|
||||
msg = current.get("Error")
|
||||
except Exception as e:
|
||||
msg = f"签到失败\n错误信息: {e}"
|
||||
sign_msg = f"用户昵称: {username}\n签到状态: {msg}"
|
||||
return sign_msg
|
||||
|
||||
def main(self):
|
||||
msg_list = []
|
||||
for samsung_cookie in self.samsung_cookie_list:
|
||||
samsung_cookie = {
|
||||
item.split("=")[0]: item.split("=")[1] for item in samsung_cookie.get("samsung_cookie").split("; ")
|
||||
}
|
||||
session = requests.session()
|
||||
requests.utils.add_dict_to_cookiejar(session.cookies, samsung_cookie)
|
||||
session.headers.update(
|
||||
{
|
||||
"Accept": "*/*",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74",
|
||||
"X-Requested-With": "XMLHttpRequest",
|
||||
"Origin": "http://www.samsungmembers.cn",
|
||||
"Referer": "http://www.samsungmembers.cn/",
|
||||
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
|
||||
}
|
||||
)
|
||||
sign_msg = self.sign(session=session)
|
||||
msg = f"【盖乐世社区】\n{sign_msg}"
|
||||
msg_list.append(msg)
|
||||
return msg_list
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
with open(
|
||||
os.path.join(os.path.dirname(os.path.dirname(__file__)), "config/config.json"), "r", encoding="utf-8"
|
||||
) as f:
|
||||
datas = json.loads(f.read())
|
||||
_samsung_cookie_list = datas.get("SAMSUNG_COOKIE_LIST", [])
|
||||
SamsungCheckIn(samsung_cookie_list=_samsung_cookie_list).main()
|
@ -14,7 +14,6 @@ from mimotion import MiMotion
|
||||
from music163 import Music163CheckIn
|
||||
from oneplusbbs import OnePlusBBSCheckIn
|
||||
from pojie import PojieCheckIn
|
||||
from samsung import SamsungCheckIn
|
||||
from smzdm import SmzdmCheckIn
|
||||
from tieba import TiebaCheckIn
|
||||
from v2ex import V2exCheckIn
|
||||
@ -43,7 +42,6 @@ checkin_map = {
|
||||
"ACFUN_ACCOUNT_LIST": AcFunCheckIn,
|
||||
"MIMOTION_ACCOUNT_LIST": MiMotion,
|
||||
"CLOUD189_ACCOUNT_LIST": Cloud189CheckIn,
|
||||
"SAMSUNG_COOKIE_LIST": SamsungCheckIn,
|
||||
"WPS_COOKIE_LIST": WPSCheckIn,
|
||||
"POJIE_COOKIE_LIST": PojieCheckIn,
|
||||
"CITY_NAME_LIST": Weather,
|
||||
|
Loading…
Reference in New Issue
Block a user