feat: update api
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-08-11 17:56:46 +08:00
parent 35893af67d
commit 14a27437a1
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ def wechat_login(json_data):
try:
result = rpc.admin.wechat_login(json_data['code'])
except Exception as e:
# TODO 返回 apiflask 的 json 格式的 error
raise e
return result
@ -24,5 +25,6 @@ def refresh_token(query_data):
try:
result = rpc.admin.refresh_token(query_data['refresh_token'])
except Exception as e:
# TODO 返回 apiflask 的 json 格式的 error
raise e
return result