MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / check_sign

Function check_sign

backup/sysxc.py:150–170  ·  view source on GitHub ↗

签到

(pointJson)

Source from the content-addressed store, hash-verified

148
149
150def check_sign(pointJson):
151 """签到"""
152 try:
153 data = {
154 "captchaVerification": pointJson
155 }
156 url = 'https://scrm-prod.shuyi.org.cn/saas-gateway/api/agg-trade/v1/signIn/insertSignInV3'
157 response = requests.post(url, json=data, headers=headers)
158 result = response.json()
159 resultCode = result['resultCode']
160
161 resultMsg = result['resultMsg']
162 if resultCode == '0':
163 logger.info(f"签到结果:{result}")
164 send('书亦烧仙草签到通知', result)
165 else:
166 logger.info(f"签到结果: {resultMsg}")
167 send('书亦烧仙草签到通知', resultMsg)
168 except Exception as err:
169 print(err)
170 sys.exit(0)
171
172def main():
173 logger.info("--------------------任务开始--------------------")

Callers 1

mainFunction · 0.85

Calls 4

sendFunction · 0.90
printFunction · 0.50
postMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected