mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt import
This commit is contained in:
@@ -70,6 +70,9 @@ def get_ua_type(self):
|
||||
|
||||
# web 表示普通浏览器,后续更深入处理
|
||||
utype = 'web'
|
||||
if not ua:
|
||||
return utype
|
||||
|
||||
# todo: 引入现成 py lib,处理企业微信
|
||||
if 'MicroMessenger' in ua and 'webdebugger' not in ua \
|
||||
and ('miniProgram' in ua or 'MiniProgram' in ua or 'MiniProgramEnv' in ua or 'wechatdevtools' in ua):
|
||||
|
||||
Reference in New Issue
Block a user