fix bug
This commit is contained in:
parent
7f667f4dc2
commit
774b843d27
4
app.py
4
app.py
@ -134,10 +134,8 @@ async def sign_endpoint(request: Request):
|
||||
data = json_data.get("data")
|
||||
a1 = json_data.get("a1")
|
||||
web_session = json_data.get("web_session")
|
||||
|
||||
if not all([uri, data, a1, web_session]):
|
||||
if not uri or not a1:
|
||||
raise HTTPException(status_code=400, detail="Missing required parameters")
|
||||
|
||||
me = await sign(uri, data, a1, web_session)
|
||||
return {
|
||||
"a1": a1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user