Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhonghuaifang committed Feb 7, 2023
1 parent 797a2b0 commit b98ad44
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions function/bika/bika.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pica_api_base_url = "https://%s/" % pica_api_host
sign_in_path = "auth/sign-in"
punch_in_path = "users/punch-in"
profile_path = "/users/profile"
profile_path = "users/profile"
POST = "POST"
GET = "GET"

Expand Down Expand Up @@ -101,13 +101,12 @@ def profile(token: string):
profile_msg = ''
profile_response = profile(current_token)
print(profile_response)
if profile_response["code"] == "200":
profile_result = profile_response["data"]["user"]
profile_msg = (
"\n用户名: %s" % profile_result["name"],
"\n等级: %s" % profile_result["level"],
"\n经验: %s" % profile_result["exp"],
)
profile_result = profile_response["data"]["user"]
profile_msg = (
"\n用户名: %s" % profile_result["name"],
"\n等级: %s" % profile_result["level"],
"\n经验: %s" % profile_result["exp"],
)

if SEND_KEY == '':
sendNotify.send(title=u"哔咔漫画自动打哔咔", msg="【哔咔漫画自动签到】\n" + msg+profile_msg)

0 comments on commit b98ad44

Please sign in to comment.