mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-06 22:42:14 +08:00
feat: 更新请求库日志逻辑
This commit is contained in:
@ -15,6 +15,7 @@ import base64
|
||||
import zlib
|
||||
import re
|
||||
import ujson as json
|
||||
import xmltodict
|
||||
from urllib.parse import quote
|
||||
from hashlib import md5 as _md5
|
||||
from flask import Response
|
||||
@ -133,5 +134,11 @@ class jsobject(dict):
|
||||
def __getattr__(self, UNUSED):
|
||||
return None
|
||||
|
||||
def dump_xml(data):
|
||||
return xmltodict.unparse(data)
|
||||
|
||||
def load_xml(data):
|
||||
return xmltodict.parse(data)
|
||||
|
||||
add_to_global_namespace('require', require)
|
||||
|
||||
|
Reference in New Issue
Block a user