Members
(static, constant) isWeixin :bool
是否微信环境。true: 表示微信环境,false: 表示非微信环境。
Type:
- bool
(inner, constant) isQQ :bool
是否QQ浏览器环境。true: 表示QQ环境,false: 表示非QQ环境。
Type:
- bool
(inner, constant) isQQLogin :bool
是否QQ登陆用户。true: 表示QQ登录用户,false:表示非QQ登录用户。
Type:
- bool
(inner, constant) isWeixinMinProgram
微信小程序环境
(inner, constant) isWXLogin :bool
是否为微信登陆用户。true: 表示微信登录用户,false: 表示非微信登录用户。
Type:
- bool
Methods
(inner) getAuth() → {string}
获取登录态字段
返回:
- Type
- string
返回登录态字段
(inner) getBkn() → {string}
计算 bkn 值
返回:
- Type
- string
- get encryped auth info from cookie
(inner) getPlatformCode() → {number}
获取当前平台的code代码
返回:
- Type
- number
1、2、3
(inner) getQQUin() → {string}
获取qq uin
返回:
- Type
- string
返回QQ的uin
(inner) getSkey() → {string}
获取用户 skey,优先使用 p_skey
返回:
- Type
- string
返回 p_skey
(inner) getStudentClientVersion() → {string}
获取学生端的版本号
返回:
- Type
- string
版本号
(inner) getUin() → {string}
获取用户 uin,兼容微信和QQ
返回:
- Type
- string
返回QQ或者微信的uin
(inner) isFudaoApp() → {bool}
是否是辅导的APP环境
返回:
- Type
- bool
true 表示在辅导APP环境,false 表示非辅导APP环境
(inner) isMQQ() → {bool}
判断是否是手Q环境
返回:
- Type
- bool
true 表示是手Q环境,false 表示非手Q环境
(inner) isPC() → {bool}
是否是PC环境
返回:
- Type
- bool
是否是PC环境
(inner) isSupportWXLogin() → {bool}
判断当前环境是否支持微信登录,注:目前只有在微信,safari,uc,手Q中可以调起微信登录,否则只能调起QQ登录
返回:
- Type
- bool
true 表示当前环境支持调起微信登录,false 表示当前环境不支持调起微信登录。
(inner) isWX() → {bool}
是否微信环境
- Deprecated:
- 该方法将被废弃,请使用 imutils.isWeixin 代替。
返回:
- Type
- bool
true 表示在微信环境中,false 表示非微信环境中。
(inner) versionCodeZero() → {bool}
判断 version code 是不是 0
- Deprecated:
- 未找到调用的地方,将被废弃
返回:
- Type
- bool
true 表示version code是0,false 表示version code非0