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