记得上下班打卡 | git大法好,push需谨慎

Commit 0f51e91b authored by 姜秀龙's avatar 姜秀龙

离线支付-迈之 退款 log

parent f451f353
......@@ -199,10 +199,21 @@ public class MaiZhiAllVo {
// 变更设备状态
@Data
public static class ChangeDeviceStatusResponse {
public static class ChangeDeviceStatusResponse implements Cloneable {
private String msg;
private Integer errcode;
private Integer status;
private String note;
private static final ChangeDeviceStatusResponse obj = new ChangeDeviceStatusResponse();
public static ChangeDeviceStatusResponse getNew() {
try {
return (ChangeDeviceStatusResponse) obj.clone();
} catch (CloneNotSupportedException e) {
e.printStackTrace();
}
return new ChangeDeviceStatusResponse();
}
}
}
......@@ -237,7 +237,9 @@ public class GoblinRechargeWristbandServiceImpl extends ServiceImpl<GoblinRechar
String cardno = orderVo.getCardno();
String accessToken = this.getAccessToken();
if (null != accessToken) {
log.info("changeDeviceStatus 参数 cardno:{}, type:{}", cardno, type);
ChangeDeviceStatusResponse response = thirdMaiZhiUtils.changeDeviceStatus(accessToken, cardno, type);
log.info("changeDeviceStatus 结果:{}", response);
if (response.getErrcode() == 200) {
orderVo.setStatus(3);
orderVo.setRefundStatus(0);
......@@ -254,8 +256,13 @@ public class GoblinRechargeWristbandServiceImpl extends ServiceImpl<GoblinRechar
SqlMapping.gets(sqls, sqlDataOrder)
);
}
return response;
} else {
ChangeDeviceStatusResponse response = ChangeDeviceStatusResponse.getNew();
response.setErrcode(400);
response.setMsg("token获取错误");
return response;
}
return null;
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment