fix common

This commit is contained in:
ivan deng
2023-05-23 18:49:20 +08:00
parent 852b5afe1d
commit 099ea7682d
3 changed files with 18 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class AppController(http.Controller):
# 返回这个图片的base64编码
return base64.b64encode(BytesIO(response.content).read())
@http.route(['/my/ua', '/web/ua', '/web/ua/show'], auth='public', methods=['GET'])
@http.route(['/my/ua', '/wxa/ua', '/web/ua', '/web/ua/show'], auth='public', methods=['GET'])
def app_ua_show(self):
# https://github.com/selwin/python-user-agents
ua_string = request.httprequest.headers.get('User-Agent')