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

Function is_token_error

wxapp/BREO.py:54–56  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

52 return result.get("success") is True or str(result.get("code")) in ("0000", "200", "200.0")
53
54def is_token_error(message):
55 text = str(message)
56 return any(key in text for key in ["40101", "40102", "token", "登录", "授权", "过期", "失效"])
57
58def wx_headers():
59 return {

Callers 1

validate_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected