修正访客上传图片
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m18s
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m18s
This commit is contained in:
parent
38e75e6b6b
commit
6d3849fa64
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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("二维码已过期");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user