You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
321 B
10 lines
321 B
# -*- coding: utf-8 -*-
|
|
# t11-ping.py — 服务在线检查
|
|
import sys
|
|
import requests
|
|
try:
|
|
r = requests.get('http://localhost:8080/api/auth/debug/token', params={'userId': '739564171091247104'}, timeout=10)
|
|
print('HTTP', r.status_code, r.text[:120])
|
|
except Exception as e:
|
|
print('DOWN:', e)
|
|
sys.exit(1)
|
|
|