From 75ebd3275db9577949ab4a1447a3d3a11b800311 Mon Sep 17 00:00:00 2001 From: Chill Date: Wed, 8 Nov 2023 19:45:20 +0800 Subject: [PATCH] =?UTF-8?q?prepare=20#I8DK3T=20[app=5Fsocial=5Flogin=5Fwxw?= =?UTF-8?q?ork]=E5=AE=8C=E6=88=90=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E7=99=BB=E5=BD=95=EF=BC=8C=E5=8E=9F=E6=9D=A5?= =?UTF-8?q?13=E7=9A=84ok=EF=BC=8C=E8=B0=83=E6=95=B4=E8=87=B316=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_common/models/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_common/models/base.py b/app_common/models/base.py index 6fd539a5..a248dabf 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -204,6 +204,8 @@ def get_ua_type(): and ('miniProgram' in ua or 'MiniProgram' in ua or 'MiniProgramEnv' in ua or 'wechatdevtools' in ua): # 微信小程序及开发者工具 utype = 'wxapp' + elif 'wxwork' in ua: + utype = 'qwapp' elif 'MicroMessenger' in ua: # 微信浏览器 utype = 'wxweb' @@ -212,7 +214,5 @@ def get_ua_type(): utype = 'native_android' elif 'BytedanceWebview' in ua: utype = 'dyweb' - elif 'wxwork' in ua: - utype = 'qwapp' # _logger.warning('=========get ua %s,%s' % (utype, ua)) return utype