=分割qrcode

This commit is contained in:
ZZ 2021-11-18 11:23:07 +08:00
parent 6eaebea373
commit aef165f2a8

View File

@ -31,11 +31,12 @@ public class QueryTerminalCodeController {
if (null != qRCode) {
resp.setRet(EvcsConst.RET_SUCC);
resp.setMsg("success");
String terminalCode = qRCode.substring(qRCode.length() - 16);
String terminalCode = qRCode.split("=")[1];
queryTerminalCodeResponse.setTerminalCode(terminalCode);
resp.setData(JSONUtil.toJSONString(queryTerminalCodeResponse));
}
}
return resp;
}
}