Commit 9a46983e authored by xianyang's avatar xianyang

优化账户接口

parent b1d650e4
......@@ -118,10 +118,10 @@ def out_on_account(page: int,
@router.get("/query/consumable")
def query_account_money(uuid: str, amount_type: Optional[str] = "consumable", token=Depends(login_required)):
def query_account_money(uuid: Optional[str] = "", amount_type: Optional[str] = "consumable", token=Depends(login_required)):
"""查询账户余额"""
if not uuid:
return HttpResultResponse(code=500, msg='请输入uuid')
return HttpResultResponse(code=500, msg='请选择账户')
consumable = account_money(uuid, amount_type)
if consumable == '清算系统异常':
return HttpResultResponse(code=500, msg='清算系统异常,暂未查询到余额,请稍后再试!')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment