Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3b52848c2 |
3
main.py
3
main.py
@@ -195,7 +195,8 @@ def check_platform_verify(model_id: str) -> dict:
|
|||||||
resp = requests.get(url, headers=headers, params={'modelId': model_id}, timeout=10)
|
resp = requests.get(url, headers=headers, params={'modelId': model_id}, timeout=10)
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
if data.get('code') == 0:
|
if data.get('code') == 0:
|
||||||
return data.get('data', {}).get('verifyResult', {})
|
result = data.get('data', {}).get('verifyResult', {})
|
||||||
|
return result if isinstance(result, dict) else {}
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user