refactor: 清理后端冗余代码和未用依赖
This commit is contained in:
@@ -4,7 +4,6 @@ import hashlib
|
||||
import hmac
|
||||
import json
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from app.config import BASE_DIR
|
||||
@@ -81,4 +80,3 @@ def _sign(header: str, payload: str) -> str:
|
||||
hashlib.sha256,
|
||||
).digest()
|
||||
return base64.urlsafe_b64encode(raw).decode().rstrip("=")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user