|
|
|
@ -64,7 +64,6 @@ const getOpenidInfo = (cb, refresh) => {
|
|
|
|
// 判断运行环境:H5还是小程序
|
|
|
|
// 判断运行环境:H5还是小程序
|
|
|
|
const isH5 = typeof window !== 'undefined' && window.location
|
|
|
|
const isH5 = typeof window !== 'undefined' && window.location
|
|
|
|
const isWeixinBrowser = isH5 && /MicroMessenger/i.test(navigator.userAgent)
|
|
|
|
const isWeixinBrowser = isH5 && /MicroMessenger/i.test(navigator.userAgent)
|
|
|
|
|
|
|
|
|
|
|
|
if (isH5 && isWeixinBrowser) {
|
|
|
|
if (isH5 && isWeixinBrowser) {
|
|
|
|
// H5环境下的微信授权登录
|
|
|
|
// H5环境下的微信授权登录
|
|
|
|
wxH5AuthLogin(cb)
|
|
|
|
wxH5AuthLogin(cb)
|
|
|
|
|