This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
def getToken():
|
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)
|
res = requests.post('http://192.168.124.12:4533/music/auth/login', json = body)
|
||||||
resJson = res.json()
|
resJson = res.json()
|
||||||
return resJson.get('token')
|
return resJson.get('token')
|
Reference in New Issue
Block a user