Spaces:
Running
Running
rogerxavier
commited on
Commit
•
e07a807
1
Parent(s):
12a3c7d
Update server/notify.py
Browse files- server/notify.py +3 -2
server/notify.py
CHANGED
@@ -6,8 +6,9 @@ from .pydanticModel import *
|
|
6 |
from .dao import tableStore
|
7 |
|
8 |
router = APIRouter()
|
9 |
-
|
10 |
-
@router.
|
|
|
11 |
async def update_balance(afdianHookjson: AfdianHookJson):
|
12 |
|
13 |
resp = {'ec': 200}
|
|
|
6 |
from .dao import tableStore
|
7 |
|
8 |
router = APIRouter()
|
9 |
+
#afdian的回调是post huggingfaceb不知道抽什么风只能二级路由
|
10 |
+
@router.get('/uu',response_model=AfdianResp)
|
11 |
+
@router.post('/uu',response_model=AfdianResp)
|
12 |
async def update_balance(afdianHookjson: AfdianHookJson):
|
13 |
|
14 |
resp = {'ec': 200}
|