GithubHelp home page GithubHelp logo

smzdm_bot's People

Contributors

stark666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

smzdm_bot's Issues

这个错误是什么意思呀

abc@abc:~/smzdm_bot$ python3 main.py
Traceback (most recent call last):
File "main.py", line 57, in
res = sb.checkin()
File "main.py", line 44, in checkin
msg = self.session.get(url)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/abc/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 600, in urlopen
httplib_response = self._make_request(conn, method, url,
File "/home/abc/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 355, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1296, in _send_request
self.putheader(hdr, value)
File "/usr/lib/python3.8/http/client.py", line 1228, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)

出错了

raceback (most recent call last):
File "smzdm_auto_sign_bot.py", line 226, in
result['data']["checkin_num"],
TypeError: list indices must be integers or slices, not str

求助,没看懂报错的问题。。。

`

Run python main.py
Traceback (most recent call last):
File "main.py", line 57, in
res = sb.checkin()
File "main.py", line 44, in checkin
msg = self.session.get(url)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/http/client.py", line 1318, in _send_request
self.putheader(hdr, value)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 219, in putheader
_HTTPConnection.putheader(self, header, *values)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/http/client.py", line 1250, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)
Error: Process completed with exit code 1.

`

https://github.com/laincat/smzdm_bot/actions/runs/476353538

Secret填入SMZDM_COOKIE一值即可?SERVERCHAN_SECRETKEY不用填了吧?

只填入一个COOKIE,RUN后ACTIONS提示WORKING显示:{'error_code': 0, 'error_msg': '', 'data': {'add_point': 0, 'checkin_num': '2', 'point': 0, 'exp': 48, 'gold': 0, 'prestige': 0, 'rank': 0, 'slogan': '

今日已领0积分,再签到1天可领0积分
', 'cards': '3', 'can_contract': 0, 'continue_checkin_days': 2, 'continue_checkin_reward_show': False}}
9
{'error_code': 0, 'error_msg': '', 'data': {'add_point': 0, 'checkin_num': '2', 'point': 0, 'exp': 48, 'gold': 0, 'prestige': 0, 'rank': 0, 'slogan': '
今日已领0积分,再签到1天可领0积分
', 'cards': '3', 'can_contract': 0, 'continue_checkin_days': 2, 'continue_checkin_reward_show': False}}
无法获取用户信息,COOKIE出错还是怎样了吗?根据https://ruicky.me/2020/06/05/jd-sign/获取的和自行获取的都没办法实现自动签到

一直提示请先登录

一直提示。{'error_code': 99, 'error_msg': '请先登录', 'data': []} 这个,cookie怎么填都不对,大佬能否指导一下

报错

Run python main.py
Traceback (most recent call last):
File "main.py", line 57, in
res = sb.checkin()
File "main.py", line 44, in checkin
msg = self.session.get(url)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/client.py", line 1318, in _send_request
self.putheader(hdr, value)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/urllib3/connection.py", line 219, in putheader
_HTTPConnection.putheader(self, header, *values)
File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/http/client.py", line 1250, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 668-673: ordinal not in range(256)
Error: Process completed with exit code 1

签到正常但又提示错误

 Check failure on line 1 in .github

@github-actionsgithub-actions
/ build
.github#L1
Process completed with exit code 1.

收到个邮件说:GitHub Actions SMZDM Bot: All jobs have failed
请问这个问题怎么解决?Actions下面看build是把叉

时间corn表达式设置描述问题

看了README.md里面写的是美区时间,感觉这样子容易误导,毕竟美区都是和**相差12个小时。
而github里面使用的是协调世界时(Universal Time Coordinated,缩写为UTC),UTC即世界标准时间,**大陆、**香港、**澳门、****、蒙古国、新加坡、马来西亚、菲律宾、西澳大利亚州的时间与UTC的时差均为+8,也就是UTC+8。
感觉这样子描述才对,比较严谨。
参考文献:https://www.cnblogs.com/you-jia/p/4465690.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.