From a262b72d8bd2b37f7e6483bdfaa8cd5ee03ff671 Mon Sep 17 00:00:00 2001 From: Chill Date: Fri, 3 Nov 2023 18:22:24 +0800 Subject: [PATCH] =?UTF-8?q?prepare=20#I8DJPV=20[app=5Fsocial=5Flogin=5Fdy]?= =?UTF-8?q?=E4=BC=98=E5=8C=96ua=E6=9D=A5=E5=A4=84=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E5=9C=A8=E6=8A=96=E9=9F=B3=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_common/models/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app_common/models/base.py b/app_common/models/base.py index e02b4ebf..6fd539a5 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -210,5 +210,9 @@ def get_ua_type(): elif 'cn.erpapp.o20sticks.App' in ua: # 安卓app 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