Skip to content

Commit

Permalink
支持登录验证。识别账号错误还是密码错误。
Browse files Browse the repository at this point in the history
考虑到bmob方法设计有点小问题,如果写到一个service包中并采用单体模式话,可能需要研究锁。希望后台大佬可以有一些更好的方案。
注册等待据前端和ui实现。
  • Loading branch information
OOF-dura committed Jul 21, 2017
1 parent d044a70 commit d77efd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/src/main/java/com/datoucai/test/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Bmob.initialize(this, "ce3e3b07c65f64e5ae70284925a95bc9");


}

public void login(View view){
Expand Down Expand Up @@ -69,7 +67,6 @@ public void done(List<users> object, BmobException e) {
}
//获得数据的objectId信息
//获得createdAt数据创建时间(注意是:createdAt,不是createAt)

}
}else{
Toast.makeText(MainActivity.this,"您还没有注册",Toast.LENGTH_SHORT).show();
Expand Down

0 comments on commit d77efd7

Please sign in to comment.