| | |
| | | */ |
| | | public class LoginAndInviteStatusUtil { |
| | | |
| | | public static boolean acessNext(Context context, String uid, boolean mustLogin) { |
| | | public static boolean acessNext(Context context, Long uid, boolean mustLogin) { |
| | | |
| | | if (mustLogin && (StringUtils.isNullOrEmpty(uid) || "0".equalsIgnoreCase(uid))) { |
| | | if (mustLogin && uid == null) { |
| | | context.startActivity(new Intent(context, LoginSelectActivity.class).setFlags(FLAG_ACTIVITY_NEW_TASK)); |
| | | return false; |
| | | } |
| | | |
| | | if (StringUtils.isNullOrEmpty(uid)) |
| | | return true; |
| | | |
| | | if ("0".equalsIgnoreCase(uid)) |
| | | return true; |
| | | // if (!StringUtils.isNullOrEmpty(UserUtil.getInviteCode(context, uid))) { |
| | | // return true; |
| | | // } |
| | | // jumpInviteActive(context); |
| | | return true; |
| | | } |
| | | |