重写response函数
def response(self, flow):
url = flow.request.url
if url in "https://lf3-cdn-tos.bytescm.com/obj/rc-web-sdk/webmssdk.js":
print("开始重定向js文件")
with open("webmssdk.js", "rb") as f:
result = f.read()
flow.response.content = result
评论区