# qa.isAccountLogin(Object object) 1059+
注意:仅在1059+以后的版本支持
判断账户登录状态,厂商账号接入详见指南
# 参数
# Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
success | function | 否 | 接口调用成功的回调函数 | |
fail | function | 否 | 接口调用失败的回调函数 | |
complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
# object.success 回调函数
# 参数
# Object res
属性 | 类型 | 说明 |
---|---|---|
isLogin | boolean | 登录状态值。true表示已登录,false表示未登录 |
# object.fail 回调函数
# 参数
# Object res
属性 | 类型 | 说明 |
---|---|---|
errCode | number | 返回状态码 |
errMsg | string | 消息内容 |
# Object res.errCode
错误码 | 说明 |
---|---|
200 | 通用错误,判断出错时返回该错误码 |
# 示例代码
qa.isAccountLogin({
success: function (res) {
console.log('data.isLogin=' + res.isLogin)
console.log('handling success' + JSON.stringify(res))
},
fail: function(res) {
console.log(`handling fail, code = ${res.errCode}`)
}
});
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
←
→
在线客服