wangliang 3 rokov pred
rodič
commit
995b396082

+ 1 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/service/impl/AuthInfoServiceImpl.java

@@ -195,7 +195,7 @@ public class AuthInfoServiceImpl implements AuthInfoService {
             int count = basicSchoolService.count(basicSchoolQueryWrapper);
             if (count == 0) {//不存在则创建学校
                 BasicSchool basicSchool = new BasicSchool(o.getCode(), o.getName(), o.getAccessKey(), o.getAccessSecret());
-                if (Objects.nonNull(o.getLogo()) && (!o.getLogo().startsWith("https:") || o.getLogo().startsWith("http"))) {
+                if (Objects.nonNull(o.getLogo()) && (!o.getLogo().startsWith("https:") || !o.getLogo().startsWith("http"))) {
                     String filePath = SystemConstant.TEMP_FILES_DIR + File.separator + SystemConstant.getUuid() + ".jpg";
                     File logoFile = new File(filePath);
                     if (!logoFile.getParentFile().exists()) {