fix bug
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package org.springblade.modules.kiosk.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springblade.core.log.exception.ServiceException;
|
||||
import org.springblade.core.oss.OssTemplate;
|
||||
import org.springblade.core.oss.model.BladeFile;
|
||||
import org.springblade.core.redis.cache.BladeRedis;
|
||||
import org.springblade.core.secure.BladeUser;
|
||||
@@ -13,7 +13,6 @@ import org.springblade.modules.kiosk.pojo.entity.PhotoAttachmentEntity;
|
||||
import org.springblade.modules.kiosk.pojo.vo.CategoryApiVO;
|
||||
import org.springblade.modules.kiosk.service.IKioskApiService;
|
||||
import org.springblade.modules.kiosk.service.IPhotoAttachmentService;
|
||||
import org.springblade.modules.resource.builder.OssBuilder;
|
||||
import org.springblade.modules.system.pojo.entity.User;
|
||||
import org.springblade.modules.system.service.IUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -26,7 +25,7 @@ import java.util.stream.Collectors;
|
||||
@AllArgsConstructor
|
||||
public class KioskServiceImpl implements IKioskApiService {
|
||||
|
||||
private final OssBuilder ossBuilder;
|
||||
private final OssTemplate ossTemplate;
|
||||
|
||||
private final BladeRedis redis;
|
||||
|
||||
@@ -61,7 +60,7 @@ public class KioskServiceImpl implements IKioskApiService {
|
||||
|
||||
User user = userService.userByAccount(tenantId, machine);
|
||||
|
||||
BladeFile bladeFile = ossBuilder.template(tenantId).putFile(fileName, stream);
|
||||
BladeFile bladeFile = ossTemplate.putFile(fileName, stream);
|
||||
|
||||
PhotoAttachmentEntity photoAttachmentEntity = new PhotoAttachmentEntity();
|
||||
photoAttachmentEntity.setTenantId(tenantId);
|
||||
|
||||
@@ -33,7 +33,7 @@ oss:
|
||||
#minio、s3、qiniu、alioss、huaweiobs、tencentcos
|
||||
name: minio
|
||||
#租户模式
|
||||
tenant-mode: true
|
||||
tenant-mode: false
|
||||
#oss服务地址
|
||||
endpoint: http://192.168.31.132:9000
|
||||
#oss转换服务地址,用于内网上传后将返回地址改为转换的外网地址
|
||||
|
||||
Reference in New Issue
Block a user