|
|
@ -41,7 +41,7 @@ class DownloadToken(object): |
|
|
|
def verify_token(self, token, release_id): |
|
|
|
def verify_token(self, token, release_id): |
|
|
|
try: |
|
|
|
try: |
|
|
|
values = cache.get(token) |
|
|
|
values = cache.get(token) |
|
|
|
if values and release_id in values.get("data", None): |
|
|
|
if values and release_id == values.get("data", None): |
|
|
|
logger.debug("verify_token token:%s release_id:%s success" % (token, release_id)) |
|
|
|
logger.debug("verify_token token:%s release_id:%s success" % (token, release_id)) |
|
|
|
return True |
|
|
|
return True |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|