mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
prepare #I8DK3T [app_social_login_wxwork]完成企业微信对接登录,原来13的ok,调整至16正常
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user