|
|
@@ -140,7 +140,7 @@ public class TopDefrayActivity extends AppActivity implements StatusAction { |
|
|
|
RequestParameters parameters = new RequestParameters(IFCode.IFCODE815, new Gson().toJson(bean)); |
|
|
|
//储值卡充值-圈存 |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters) |
|
|
|
.enqueue(new Converter<Result>() { |
|
|
|
.enqueue(new Converter<Result>(getContext(), "储值卡充值确认中...") { |
|
|
|
@Override |
|
|
|
protected void onSuccess(ResultBean resultBean, ResultBean.BizContent content) { |
|
|
|
|
|
|
@@ -166,57 +166,10 @@ public class TopDefrayActivity extends AppActivity implements StatusAction { |
|
|
|
|
|
|
|
RequestParameters parameters = new RequestParameters(IFCode.IFCODE69, new Gson().toJson(bean2)); |
|
|
|
//圈存检测V3 |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters).enqueue(new Converter<Result>() { |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters).enqueue(new Converter<Result>(getContext(), "圈存检测中...") { |
|
|
|
@Override |
|
|
|
protected void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent2) { |
|
|
|
SendTheVerificationCodeBean bean = new SendTheVerificationCodeBean(); |
|
|
|
bean.setCardId(cardId); //卡号 |
|
|
|
bean.setFee(amountOfMoney); //充值金额 |
|
|
|
bean.setPreBalance((long) (BoxManagers.mCardInfoBean.getMoney() * 100)); //交易前卡额 |
|
|
|
bean.setTradeType("14"); //交易类型 |
|
|
|
bean.setCommand(bizContent2.getCommand()); //指令 |
|
|
|
|
|
|
|
bean.setCosResponse(EquipmentAndTools.WriteCard(bizContent2.getCommand()) + ""); //初始化结果(透传) |
|
|
|
//bean.setPassId(""); //通行ID |
|
|
|
bean.setConsumeId(""); //对公账户消费流水编号 |
|
|
|
bean.setOrderId(orderNum); //消费订单编号 |
|
|
|
|
|
|
|
bean.setAgentId("52010106004"); |
|
|
|
bean.setChannelId("5201010200601130001"); |
|
|
|
bean.setChannelType("1"); |
|
|
|
bean.setTerminalId("999999999999"); |
|
|
|
bean.setStaffId(bean.getOpId()); //人 |
|
|
|
RequestParameters parameters = new RequestParameters(IFCode.IFCODE70, new Gson().toJson(bean)); |
|
|
|
//圈存申请 |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters).enqueue(new Converter<Result>() { |
|
|
|
@Override |
|
|
|
protected void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
SendTheVerificationCodeBean bean = new SendTheVerificationCodeBean(); |
|
|
|
bean.setCommand(bizContent.getCommand()); //指令 |
|
|
|
bean.setCosResponse(EquipmentAndTools.WriteCard(bizContent.getCommand()) + ""); //初始化结果(透传) |
|
|
|
bean.setRechargeId(bizContent.getRechargeId()); //充值流水号 |
|
|
|
bean.setPaidAmount(amountOfMoney); //实收金额 |
|
|
|
bean.setGiftAmount("0"); //赠送金额 |
|
|
|
|
|
|
|
bean.setAgentId("52010106004"); |
|
|
|
bean.setChannelId("5201010200601130001"); |
|
|
|
bean.setChannelType("1"); |
|
|
|
bean.setTerminalId("999999999999"); |
|
|
|
bean.setStaffId(bean.getOpId()); //人 |
|
|
|
RequestParameters parameters = new RequestParameters(IFCode.IFCODE72, new Gson().toJson(bean)); |
|
|
|
//圈存确认 |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters).enqueue(new Converter<Result>() { |
|
|
|
@Override |
|
|
|
protected void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
// new Utils().showMessDialog(getActivity(), bizContent.getTradeStateDesc(), dialog -> { |
|
|
|
// finish(); |
|
|
|
// }); |
|
|
|
toast("圈存成功!"); |
|
|
|
finish(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
entrapment(bizContent2); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
@@ -257,6 +210,60 @@ public class TopDefrayActivity extends AppActivity implements StatusAction { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public void entrapment(ResultBean.BizContent bizContent2) { |
|
|
|
SendTheVerificationCodeBean bean = new SendTheVerificationCodeBean(); |
|
|
|
bean.setCardId(cardId); //卡号 |
|
|
|
bean.setFee(amountOfMoney); //充值金额 |
|
|
|
bean.setPreBalance((long) (BoxManagers.mCardInfoBean.getMoney() * 100)); //交易前卡额 |
|
|
|
bean.setTradeType("14"); //交易类型 |
|
|
|
bean.setCommand(bizContent2.getCommand()); //指令 |
|
|
|
|
|
|
|
bean.setCosResponse(EquipmentAndTools.WriteCard(bizContent2.getCommand()) + ""); //初始化结果(透传) |
|
|
|
//bean.setPassId(""); //通行ID |
|
|
|
bean.setConsumeId(""); //对公账户消费流水编号 |
|
|
|
bean.setOrderId(orderNum); //消费订单编号 |
|
|
|
|
|
|
|
bean.setAgentId("52010106004"); |
|
|
|
bean.setChannelId("5201010200601130001"); |
|
|
|
bean.setChannelType("1"); |
|
|
|
bean.setTerminalId("999999999999"); |
|
|
|
bean.setStaffId(bean.getOpId()); //人 |
|
|
|
RequestParameters parameters = new RequestParameters(IFCode.IFCODE70, new Gson().toJson(bean)); |
|
|
|
//圈存申请 |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters).enqueue(new Converter<Result>(getContext(), "圈存申请中...") { |
|
|
|
@Override |
|
|
|
protected void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
SendTheVerificationCodeBean bean = new SendTheVerificationCodeBean(); |
|
|
|
bean.setPaidAmount(100L); //实收金额 |
|
|
|
bean.setGiftAmount("0"); //赠送金额 |
|
|
|
bean.setCommand(bizContent.getCommand()); //指令 |
|
|
|
bean.setCosResponse(EquipmentAndTools.WriteCard(bizContent.getCommand()) + ""); //初始化结果(透传) |
|
|
|
bean.setRechargeId(bizContent.getRechargeId()); //充值流水号 |
|
|
|
bean.setPaidAmount(amountOfMoney); //实收金额 |
|
|
|
bean.setGiftAmount("0"); //赠送金额 |
|
|
|
|
|
|
|
bean.setAgentId("52010106004"); |
|
|
|
bean.setChannelId("5201010200601130001"); |
|
|
|
bean.setChannelType("1"); |
|
|
|
bean.setTerminalId("999999999999"); |
|
|
|
bean.setStaffId(bean.getOpId()); //人 |
|
|
|
if ("1".equals(bizContent.getCommandType())) { |
|
|
|
entrapment(bizContent); |
|
|
|
return; |
|
|
|
} |
|
|
|
RequestParameters parameters = new RequestParameters(IFCode.IFCODE72, new Gson().toJson(bean)); |
|
|
|
//圈存确认 |
|
|
|
new MyRetrofit().getRetrofit().create(Api.class).message2(parameters).enqueue(new Converter<Result>(getContext(), "圈存确认中...") { |
|
|
|
@Override |
|
|
|
protected void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
toast("圈存成功!"); |
|
|
|
finish(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public StatusLayout getStatusLayout() { |
|
|
|
return binding.hlStatusHint; |