prepare #I8DK3T [app_social_login_wxwork]完成企业微信对接登录,原来13的ok,调整至16正常

This commit is contained in:
Chill
2023-11-08 19:45:20 +08:00
parent 8787096f91
commit 75ebd3275d

View File

@@ -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