无人机项目后端代码
guoshilong
2023-10-06 915735cd579637ee239f904874ba3f27b1ac2a18
src/main/java/com/dji/sample/component/oss/service/impl/OssAspectHandler.java
@@ -21,10 +21,10 @@
    @Before("execution(public * com.dji.sample.component.oss.service.impl.OssServiceContext.*(..))")
    public void before() {
        if (!OssConfiguration.enable) {
            throw new IllegalArgumentException("Please enable OssConfiguration.");
            throw new IllegalArgumentException("请启用OssConfiguration");
        }
        if (this.ossServiceContext.getOssService() == null) {
            throw new IllegalArgumentException("Please check the OssConfiguration configuration.");
            throw new IllegalArgumentException("请检查OssConfiguration配置");
        }
        this.ossServiceContext.createClient();
    }