This commit is contained in:
@ -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')
|
Reference in New Issue
Block a user