| 12345678910111213141516171819 |
- package com.ydtech.modules.protocol.utils;
- public class EnableUtils {
- private EnableUtils() {
- throw new IllegalStateException("AssertionUtils class");
- }
- public static boolean isEnable(int systemType, int pcStart, int appStart) {
- if (pcStart > 0 && systemType == 1) {
- return true;
- } else {
- return appStart > 0 && systemType == 2;
- }
- }
- }
|