Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法查询用户表数据 #12

Open
xiedong11 opened this issue Aug 3, 2019 · 1 comment
Open

无法查询用户表数据 #12

xiedong11 opened this issue Aug 3, 2019 · 1 comment

Comments

@xiedong11
Copy link

xiedong11 commented Aug 3, 2019

///查询单条数据
Future queryObject(objectId) async {
String tableName = T.toString();
if (T.runtimeType is BmobUser) {
tableName = "_User";
} else if (T.runtimeType is BmobInstallation) {
tableName = "_Installation";
}

return BmobDio.getInstance().get(
    Bmob.BMOB_API_CLASSES + tableName + Bmob.BMOB_API_SLASH + objectId,
    data: getParams());

}

上述通过T.runtimeType 去判断是用“_User”表还是“_Installation”表,操作是无效的,导致无法查询用户表数据

@chaozhouzhang
Copy link
Contributor

你好,已经修复,请使用单独的新的查询用户和设备表的方法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants