feat: update api
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
35893af67d
commit
14a27437a1
|
@ -13,6 +13,7 @@ def wechat_login(json_data):
|
||||||
try:
|
try:
|
||||||
result = rpc.admin.wechat_login(json_data['code'])
|
result = rpc.admin.wechat_login(json_data['code'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
# TODO 返回 apiflask 的 json 格式的 error
|
||||||
raise e
|
raise e
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -24,5 +25,6 @@ def refresh_token(query_data):
|
||||||
try:
|
try:
|
||||||
result = rpc.admin.refresh_token(query_data['refresh_token'])
|
result = rpc.admin.refresh_token(query_data['refresh_token'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
# TODO 返回 apiflask 的 json 格式的 error
|
||||||
raise e
|
raise e
|
||||||
return result
|
return result
|
Loading…
Reference in New Issue