fix: 上次图片时,选择的目录为空时,生成的图片访问不了
This commit is contained in:
parent
076f47f5c4
commit
caaf9c74f3
@ -55,6 +55,9 @@ public class UploadController {
|
||||
String base64,
|
||||
@RequestHeader String accessToken, @RequestParam String directoryPath) {
|
||||
|
||||
if(StrUtil.isBlank(directoryPath)){
|
||||
directoryPath = "default";
|
||||
}
|
||||
|
||||
AuthUser authUser = UserContext.getAuthUser(cache, accessToken);
|
||||
//如果用户未登录,则无法上传图片
|
||||
|
Loading…
x
Reference in New Issue
Block a user