Spaces:
Sleeping
Sleeping
fix: url 授权
Browse files
api.py
CHANGED
@@ -100,7 +100,7 @@ def callback(modelId,status):
|
|
100 |
url = "/api/v1/callback/user/sd/model/upload"
|
101 |
md5hash = hashlib.md5(f"{url}-{timestamp}-{rand}-{uid}-{API_AUTH_KEY}".encode())
|
102 |
md5 = md5hash.hexdigest()
|
103 |
-
res = requests.post(f"{os.environ.get('CALLBACK_DOMAIN')}?auth_key={
|
104 |
'status': status,
|
105 |
'model_id': modelId
|
106 |
})
|
|
|
100 |
url = "/api/v1/callback/user/sd/model/upload"
|
101 |
md5hash = hashlib.md5(f"{url}-{timestamp}-{rand}-{uid}-{API_AUTH_KEY}".encode())
|
102 |
md5 = md5hash.hexdigest()
|
103 |
+
res = requests.post(f"{os.environ.get('CALLBACK_DOMAIN')}?auth_key={timestamp}-{rand}-{uid}-{md5}",json={
|
104 |
'status': status,
|
105 |
'model_id': modelId
|
106 |
})
|