|
@@ -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())) {
|
|
|
+ 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()) {
|