| | |
| | | |
| | | import android.content.Context; |
| | | import android.content.SharedPreferences; |
| | | import android.view.View; |
| | | |
| | | import com.bumptech.glide.Glide; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import com.weikou.beibeivideo.BasicTextHttpResponseHandler; |
| | | import com.weikou.beibeivideo.BeibeiVideoAPI; |
| | | import com.weikou.beibeivideo.R; |
| | | import com.weikou.beibeivideo.entity.UserInfo; |
| | | import com.weikou.beibeivideo.entity.vo.UserInfoVO; |
| | | import com.weikou.beibeivideo.util.downutil.StringUtils; |
| | | |
| | | import org.apache.http.Header; |
| | | import org.json.JSONObject; |
| | | |
| | | |
| | | import static android.content.Context.MODE_PRIVATE; |
| | | |
| | |
| | | return false; |
| | | else |
| | | return true; |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | public static boolean isVIP(Context context) { |
| | | |
| | | UserInfoVO vo = getLoginUserInfoDetail(context); |
| | | if (vo == null) { |
| | | return false; |
| | | } |
| | | if (vo.getVipExpireTime() == null) { |
| | | return false; |
| | | } |
| | | |
| | | if (System.currentTimeMillis() > vo.getVipExpireTime().longValue()) { |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | } |