Quellcode durchsuchen

注销 - ETC设备 - 调整调用指令接口、补充log信息

GZBranch
wufasong vor 5 Tagen
Ursprung
Commit
a3bc75718f

+ 9
- 8
app/src/main/java/com/huntersun/vkyes/etcopencard/project/ui/activity/after/LogoutEtcStep3Activity.java Datei anzeigen

@@ -570,14 +570,14 @@ public class LogoutEtcStep3Activity extends AppActivity {
HashMap<String, Object> params = new HashMap<>();
params.put("accessToken", MyShared.getInstance().get(MyShared.ACCESSTOKEN, "") + "");
params.put("loginSource", Constants.LOGIN_SOURCE);
params.put("orderNo", orderNo);
params.put("staffId", MyShared.getInstance().get(MyShared.STAFFID, ""));
params.put("command", command);
params.put("transOrderId", transOrderId);
params.put("response", result);
params.put("cmd", command); // 指令
params.put("cmdResult", result); // 指令结果
params.put("customerId", customerId); // 客户ID
params.put("stepNo", 1); // 步骤号,从1开始(表示第一步)
params.put("transOrderId", transOrderId); // 指令编号
Log.i(this.getClass().getSimpleName(), "指令回传 请求参数:" + JSONObject.toJSONString(params));
Log.i(this.getClass().getSimpleName(), "指令回传 指令:" + command + ", 指令编号:" + transOrderId + ", 响应:" + result);
Log.i(this.getClass().getSimpleName(), "指令回传 指令:" + command + ", 指令编号:" + transOrderId + ", 指令结果:" + result);
MyRetrofit.newInstanceGZ(this, IFCode.IFCODE_DEVICE_CANCEL_INST_CALLBACK, params, new MyRetrofit.ReturnResult() {
@Override
@@ -600,13 +600,14 @@ public class LogoutEtcStep3Activity extends AppActivity {
Log.i(this.getClass().getSimpleName(), "指令回传 解析结果 - cmd: " + cmd + ", cmdType: " + cmdType + ", stepNo: " + stepNo + ", transOrderId: " + transOrderId);
// 检查是否需要继续写卡(根据stepNo判断)
// stepNo是"下一步骤号",如果大于0表示还有下一步,如果为0或null表示完成
if (stepNo != null && stepNo > 0) {
// 需要继续写卡,递归调用
Log.i(this.getClass().getSimpleName(), "需要继续写卡,步骤号: " + stepNo);
Log.i(this.getClass().getSimpleName(), "需要继续写卡,下一步骤号: " + stepNo);
executeWriteCard(cmd, transOrderId);
} else {
// 写卡完成,注销成功
Log.i(this.getClass().getSimpleName(), "写卡完成,注销成功");
Log.i(this.getClass().getSimpleName(), "写卡完成,注销成功,步骤号: " + stepNo);
confirmLogoutEtc(20);
}
} else {

Laden…
Abbrechen
Speichern