From 06786f4887cc4ffea8fb21ba1f59ea86874b32ad Mon Sep 17 00:00:00 2001 From: Ivan Office Date: Thu, 16 May 2024 02:41:58 +0800 Subject: [PATCH] op seo --- app_common/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_common/controllers/main.py b/app_common/controllers/main.py index 2e7e21f4..4b344b79 100644 --- a/app_common/controllers/main.py +++ b/app_common/controllers/main.py @@ -28,7 +28,7 @@ class AppController(http.Controller): # 返回这个图片的base64编码 return base64.b64encode(BytesIO(response.content).read()) - @http.route(['/my/ua', '/wxa/ua', '/web/ua', '/web/ua/show'], auth='public', methods=['GET']) + @http.route(['/my/ua'], auth='public', methods=['GET'], sitemap=False) def app_ua_show(self): # https://github.com/selwin/python-user-agents ua_string = request.httprequest.headers.get('User-Agent')