|
|
@@ -685,7 +685,7 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
|
|
|
|
Log.i(this.getClass().getSimpleName(), "指令总数: " + len); |
|
|
|
|
|
|
|
// 逐条执行指令 |
|
|
|
// 逐条执行指令,先收集所有结果 |
|
|
|
for (int i = 0; i < len; i++) { |
|
|
|
Log.i(this.getClass().getSimpleName(), "执行第 " + (i + 1) + " 条指令: " + commands_arry[i]); |
|
|
|
|
|
|
@@ -694,12 +694,6 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
results[i] = resp_string.getServiceInfo(); |
|
|
|
|
|
|
|
Log.i(this.getClass().getSimpleName(), "第 " + (i + 1) + " 条指令执行结果: " + results[i] + ", 状态码: " + resp_string.getServiceCode()); |
|
|
|
|
|
|
|
// 检查指令是否执行成功 |
|
|
|
if (resp_string.getServiceCode() != 0) { |
|
|
|
Log.e(this.getClass().getSimpleName(), "第 " + (i + 1) + " 条指令执行失败,状态码: " + resp_string.getServiceCode()); |
|
|
|
throw new RuntimeException("第 " + (i + 1) + " 条指令执行失败,状态码: " + resp_string.getServiceCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 拼接结果 |
|
|
@@ -748,7 +742,7 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
|
|
|
|
Log.i(this.getClass().getSimpleName(), "指令总数: " + len); |
|
|
|
|
|
|
|
// 逐条执行指令 |
|
|
|
// 逐条执行指令,先收集所有结果 |
|
|
|
for (int i = 0; i < len; i++) { |
|
|
|
Log.i(this.getClass().getSimpleName(), "执行第 " + (i + 1) + " 条指令: " + commands_arry[i]); |
|
|
|
|
|
|
@@ -757,12 +751,6 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
results[i] = resp_string.getServiceInfo(); |
|
|
|
|
|
|
|
Log.i(this.getClass().getSimpleName(), "第 " + (i + 1) + " 条指令执行结果: " + results[i] + ", 状态码: " + resp_string.getServiceCode()); |
|
|
|
|
|
|
|
// 检查指令是否执行成功 |
|
|
|
if (resp_string.getServiceCode() != 0) { |
|
|
|
Log.e(this.getClass().getSimpleName(), "第 " + (i + 1) + " 条指令执行失败,状态码: " + resp_string.getServiceCode()); |
|
|
|
throw new RuntimeException("第 " + (i + 1) + " 条指令执行失败,状态码: " + resp_string.getServiceCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 拼接结果 |