EnableUtils.java 413 B

12345678910111213141516171819
  1. package com.ydtech.modules.protocol.utils;
  2. public class EnableUtils {
  3. private EnableUtils() {
  4. throw new IllegalStateException("AssertionUtils class");
  5. }
  6. public static boolean isEnable(int systemType, int pcStart, int appStart) {
  7. if (pcStart > 0 && systemType == 1) {
  8. return true;
  9. } else {
  10. return appStart > 0 && systemType == 2;
  11. }
  12. }
  13. }