好久没写博客了,怀念那种感觉,借此试一试
protected void onPostExecute(Boolean result) {
super.onPostExecute(result);
dismissLoadingDialog();
if (!result) {
showCustomToast("Login password authentication failed !");
} else {
for (int i = 0; i < staffs.size(); i++) {
if (Constant.currentStaff.getS_account().equals(
staffs.get(i).getS_account())) {
Constant.currentStaff = staffs.get(i);
}
}
/* 厨师登录*/关键修改部分//
if (Constant.currentStaff.getPriority() == 1) { //优先级
LoginActivity.this.startActivity(new Intent(LoginActivity.this, CookActivity.class));
Log.i("log","厨师端"+Constant.currentStaff.getPriority()+"测试优先级的传值");
}
else if (Constant.currentStaff.getPriority() == 0) {
Constant.clockInTime = DateUtils.getDateEN(); //点击登录时间的登录记录
LoginActivity.this.startActivity(new Intent(LoginActivity.this, DeskMenuActivity.class));
Log.i("log","不是不是不是厨师端222"+Constant.currentStaff.getPriority()+"测试优先级的传值");
}else{
//Constant.clockInTime = DateUtils.getDateEN();
Log.i("log","不是不是不是厨师端"+Constant.currentStaff.getPriority()+"测试优先级的传值");
Log.i("log","什么都不是!!!!!!!");
LoginActivity.this.startActivity(new Intent(LoginActivity.this, DeskMenuActivity.class));
}
}
}
});
}