Code Monkey home page Code Monkey logo

moguding-auto's Introduction

  • 👋 Hi, I’m @leifengwl
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

moguding-auto's People

Contributors

leifengwl avatar yunak 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

moguding-auto's Issues

大佬救命,我无法运行出现报错

##groupRun python MoGuDing.py
36;1mpython MoGuDing.py�0m
shell: /usr/bin/bash -e 0
env:
pythonLocation: /opt/hostedtoolcache/Python/3.9.6/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.6/x64/lib
PERSONAL_INFORMATION: ***

SERVERPUSHKEY:
TG_BOT_TOKEN:
TG_USER_ID:
BARK:
PUSHPLUS:
ACCESSTOKEN:
CORPID:
CORPSECRET:
TOUSER:
AGENTID:
THUMB_MEDIA_ID:
AUTHOR:
##endgroup
File "/home/runner/work/MoGuDing-Auto/MoGuDing-Auto/MoGuDing.py", line 30
"password": "aZ27631234***"password"***,
^
SyntaxError: invalid syntax
##errorProcess completed with exit code 1.

以上是出现运行报错的代码

这是我PERSONAL_INFORMATION的值
[
{
"phone": "1307651XXXX",
"password": "aZ27631234",
"token": "",
"country": "**",
"province": "广东省",
"city": "深圳市",
"address": "广东省 · 深圳市 · 粤商产业大厦",
"latitude": "22.68545",
"longitude": "113.951605"
}

]

多账号打卡程序会运行失败

两个号已经分别单独测试打卡运行能够成功,但如果值填在一起会失败,我觉得很郁闷
以下是失败代码 File "/home/runner/work/MoGuDing-Auto/MoGuDing-Auto/MoGuDing.py", line 308, in
main()
File "/home/runner/work/MoGuDing-Auto/MoGuDing-Auto/MoGuDing.py", line 273, in main
informations = json.loads(personal_information)
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 3 column 14 (char 19)
##errorProcess completed with exit code 1.
网址https://github.com/ZFYshare/MoGuDing-Auto/runs/3280280120?check_suite_focus=true

这是information的值
[
{
"phone": '1307651XXXX',
"password": "XXXXX34",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJtb2d1ZGluZy11c2VyIiwic3ViIjoie1wibG9naW5UeXBlXCI6XCJhbmRyb2lkXCIsXCJ1c2VySWRcIjoxMDI2ODc2NjB9IiwiYXVkIjoibW9ndWRpbmciLCJleHAiOjE5NDM1MTE4NTAsIm5iZiI6MTYyNzg5MTc1MCwiaWF0IjoxNjI3ODkyNjUwfQ.VquSK89i5zPGylb8i-Rubm3Llrjx7Xchp6Pl_qY8aUH-pQLfE4A3qAi-xHVeky3iFecGWLay7FHkxDOrNqVKSA",
"country": "**",
"province": "广东省",
"city": "深圳市",
"address": "广东省 · 深圳市 · 粤商产业大厦",
"latitude": "22.6863",
"longitude": "113.956",
},
{
"phone": "1582016XXXX",
"password": "XX888888",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJtb2d1ZGluZy11c2VyIiwic3ViIjoie1wibG9naW5UeXBlXCI6XCJhbmRyb2lkXCIsXCJ1c2VySWRcIjoxMDI4MzQzNzN9IiwiYXVkIjoibW9ndWRpbmciLCJleHAiOjE5NDQxMzEwNzksIm5iZiI6MTYyODUxMDk3OSwiaWF0IjoxNjI4NTExODc5fQ.ZL5pf9Ap-WnfDGy_NPeHPFXzrLR2kMe_KPV2ZVX_sR98_C4doa8MoTVooCgktFlzaLBGyUbFW9FNzebiIG-q-A",
"country": "**",
"province": "广东省",
"city": "河源市",
"address": " 广东省 · 河源市 · 壹心(河源)传媒有限公司",
"latitude": "23.7567",
"longitude": "114.695761"
}

]

Project dependencies may have API risk issues

Hi, In MoGuDing-Auto, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

datetime
pytz
requests
urllib3
markdown

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project,
The version constraint of dependency pytz can be changed to >=2011d,<=2013d.
The version constraint of dependency pytz can be changed to >=2011b,<=2022.1.
The version constraint of dependency requests can be changed to >=2.4.0,<=2.15.1.
The version constraint of dependency urllib3 can be changed to >=1.9,<=1.26.9.
The version constraint of dependency markdown can be changed to >=2.3,<=3.3.7.

The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the pytz
pytz.timezone
The calling methods from the requests
requests.post
requests.get
urllib3.disable_warnings
The calling methods from the urllib3
urllib3.disable_warnings
The calling methods from the markdown
markdown.markdown
The calling methods from the all methods
print
NoticePush.server_push
datetime.datetime.now
main
f.readlines
os.environ.get
urllib3.disable_warnings
json.loads
checkForUpdates
requests.get
NoticePush.ding_push_message
NoticePush.push_plus
os.path.exists
data.json.dumps.access_token.requests.post.json
line.strip
line.strip.strip
res.json.get
INFORMATION.get.strip
getSign
sys.exit
requests.post
pytz.timezone
NoticePush.enterprise_wechat
INFORMATION.update
markdown.markdown
os.path.dirname
GlobalVariable.headers.update
GlobalVariable.PERSONAL_INFORMATION.strip
requests.get.json
requests.post.json
INFORMATION.get
login
NoticePush.bark
NoticePush.telegram_bot
data.json.dumps.access_token.requests.post.json.json
signIn
len
os.path.abspath
json.dumps
format
getUserInfo
getPlanByStu
open

@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.

功能不可用

脚本现在已经不能用了, 仔细看了一下, getSign函数里的api似乎有点问题, 拿不到sign值了
重写了sign算法后, 考勤的功能也无法使用了, 抓了包看了一下, 发现多了一个T的请求参数
应该是没有T的请求参数造成的, 请问可以告知一下t参数的算法嘛?? 多谢!

planid参数none

响应体planid参数为none是什么原因啊,我登录看了,服务器返回的就是none

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.