|
@@ -63,6 +63,7 @@ import com.hanghui.senic.service.usbserialdemo.utile.SharedPreferencesUtils;
|
|
|
import com.hanghui.senic.service.usbserialdemo.utile.StringIsNull;
|
|
|
import com.hanghui.senic.service.usbserialdemo.utile.StringUtils;
|
|
|
import com.hanghui.senic.service.usbserialdemo.utile.X1.RelaysAndLedUtile;
|
|
|
+import com.hanghui.senic.service.usbserialdemo.utile.X5.X5RelaysAndLedUtile;
|
|
|
import com.hanghui.senic.service.usbserialdemo.utile.loacat.AppLogUtils;
|
|
|
import com.hanghui.senic.view.CustomRoundAngleImageView;
|
|
|
import com.hanghui.senic.view.IEditText;
|
|
@@ -1137,7 +1138,7 @@ public class ResultViewManager {
|
|
|
SignalNo = "";
|
|
|
isSignalRun = false;
|
|
|
if (ConfigManager.getAuthenticationBean().getData().get(0).getRelayOpenModel() == 2) {//开 - 门磁 -闭 模式
|
|
|
- RelaysAndLedUtile.getInstance().isOpenRelays(0);//1 开门 0关门
|
|
|
+ X5RelaysAndLedUtile.getInstance().isOpenRelays(0);//1 开门 0关门
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1165,7 +1166,7 @@ public class ResultViewManager {
|
|
|
} else {
|
|
|
if (ConfigManager.getAuthenticationBean().getData().get(0).getRelayOpenModel() == 2) {//开 - 门磁 -闭 模式
|
|
|
AppLogUtils.i(true, TAG, "下发继电器开门信号");
|
|
|
- RelaysAndLedUtile.getInstance().isOpenRelays(1);//1 开门 0关门
|
|
|
+ X5RelaysAndLedUtile.getInstance().isOpenRelays(1);//1 开门 0关门
|
|
|
//打开60秒后自动执行下次逻辑的延时器
|
|
|
int GateTimeOut = 60;
|
|
|
if (ConfigManager.getAuthenticationBean().getData().get(0).getGateTimeOut() > 0) {
|
|
@@ -1175,12 +1176,12 @@ public class ResultViewManager {
|
|
|
AppHandler.getHandler().postDelayed(DoorMagneticTimerRunnable, GateTimeOut * 1000);
|
|
|
} else {// 开 - 闭 模式
|
|
|
AppLogUtils.i(true, TAG, "下发继电器开门信号");
|
|
|
- RelaysAndLedUtile.getInstance().isOpenRelays(1);//1 开门 0关门
|
|
|
+ X5RelaysAndLedUtile.getInstance().isOpenRelays(1);//1 开门 0关门
|
|
|
TimerTask timerTask = new TimerTask() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
AppLogUtils.i(true, TAG, "下发继电器关门信号");
|
|
|
- RelaysAndLedUtile.getInstance().isOpenRelays(0);//1 开门 0关门
|
|
|
+ X5RelaysAndLedUtile.getInstance().isOpenRelays(0);//1 开门 0关门
|
|
|
int delayMillis = 1;
|
|
|
if (ConfigManager.getAuthenticationBean().getData().get(0).getSignalInterval() > 0) {
|
|
|
delayMillis = ConfigManager.getAuthenticationBean().getData().get(0).getSignalInterval();
|
|
@@ -2473,6 +2474,7 @@ public class ResultViewManager {
|
|
|
loadingLocally_Text.setText(SucText);
|
|
|
} else {
|
|
|
outcomeActivity_OutcomeTextView.setText(SucText);
|
|
|
+ outcomeActivity_LinearLayout.setBackgroundResource(R.mipmap.background);
|
|
|
}
|
|
|
MTTSManager.getInstance().speak(ConfigManager.getAuthenticationBean().getData().get(0).getSucVoice());
|
|
|
openDelay(ConfigManager.getAuthenticationBean().getData().get(0).getSuccessPageTime());
|
|
@@ -3204,9 +3206,9 @@ public class ResultViewManager {
|
|
|
private void resetState() {
|
|
|
PassportController.getInstance().isPassportIn = false;
|
|
|
if (ConfigManager.getAuthenticationBean().getData().get(0).getFaceMode().equals("click")) {
|
|
|
- RelaysAndLedUtile.getInstance().setLedLight(ConfigManager.getAuthenticationBean().getData().get(0).getLightMode(), false);
|
|
|
+ X5RelaysAndLedUtile.getInstance().setLedLight(ConfigManager.getAuthenticationBean().getData().get(0).getLightMode(), false);
|
|
|
} else {
|
|
|
- RelaysAndLedUtile.getInstance().setLedLight(ConfigManager.getAuthenticationBean().getData().get(0).getLightMode(), true);
|
|
|
+ X5RelaysAndLedUtile.getInstance().setLedLight(ConfigManager.getAuthenticationBean().getData().get(0).getLightMode(), true);
|
|
|
}
|
|
|
//判断是否为键盘
|
|
|
if (!StringIsNull.IsStringNull(BusinessType) && BusinessType.equals(PAGE_TYPE_ENTERIDNUMBER)) {
|