修正访客上传图片
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m18s

This commit is contained in:
mocheng 2025-08-18 20:43:12 +08:00
parent 38e75e6b6b
commit 6d3849fa64
2 changed files with 4 additions and 1 deletions

View File

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

View File

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