Merge branch 'master' of http://47.109.37.87:3000/by2025/SmartParks
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m35s

This commit is contained in:
dy 2025-08-19 09:57:31 +08:00
commit 7376a7a9be
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,9 @@ public class RemoteVisitoreGetCodeInfo implements RemoteVisitoreGetCodeInfoServi
@Override @Override
public String getCodeInfo(String code) { public String getCodeInfo(String code) {
QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY +"Qrcode" +code); QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY +"Qrcode" +code);
if (info == null){
return "";
}
return info.getUserid().toString(); return info.getUserid().toString();
} }
} }

View File

@ -102,7 +102,7 @@ public class SysOssController extends BaseController {
} }
String codeInfo = remoteVisitoreGetCodeInfoService.getCodeInfo(code); String codeInfo = remoteVisitoreGetCodeInfoService.getCodeInfo(code);
// QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY+"Qrcode" + code); // QrCodeInfo info = RedisUtils.getCacheObject(GlobalConstants.CAPTCHA_CODE_KEY+"Qrcode" + code);
if (codeInfo.isBlank()){ if (codeInfo.isEmpty()){
return R.fail("二维码已过期"); return R.fail("二维码已过期");
} }