wsj1995 commited on
Commit
58a9440
·
1 Parent(s): 272eeaf

fix: url 授权

Browse files
Files changed (1) hide show
  1. api.py +1 -1
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={url}-{timestamp}-{rand}-{uid}-{md5}",json={
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
  })