fix: login
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mol
2023-11-15 17:40:10 +08:00
parent 52b2e0e56b
commit 4d00138b32

View File

@ -1,7 +1,7 @@
import requests
def getToken():
body = { 'username': 'mol', 'password': 'c!UxnePTkwBMb7' }
body = { 'username': 'fan@yunying.com', 'password': 'm%Bn$w5jgiNsNC' }
res = requests.post('http://192.168.124.12:4533/music/auth/login', json = body)
resJson = res.json()
return resJson.get('token')