|
@@ -7,7 +7,6 @@ import com.qmth.teachcloud.common.annotation.DBVerify;
|
|
|
import com.qmth.teachcloud.common.bean.result.DBVerifyResult;
|
|
|
import com.qmth.teachcloud.common.config.DictionaryConfig;
|
|
|
import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
|
-import com.qmth.teachcloud.common.entity.SysConfig;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
|
import com.qmth.teachcloud.common.enums.LocalCatalogEnum;
|
|
@@ -80,7 +79,6 @@ public class SystemConstant {
|
|
|
* 云阅卷api
|
|
|
*/
|
|
|
public static final String CLOUD_MARK_EXAM_SAVE_API = "/api/exam/save";
|
|
|
-
|
|
|
public static final String CLOUD_MARK_EXAM_LIST_API = "/api/exams";
|
|
|
public static final String CLOUD_MARK_EXAM_STUDENT_SAVE_API = "/api/exam/student/save";
|
|
|
public static final String CLOUD_MARK_FILE_UPLOAD_API = "/api/file/{type}/upload";
|
|
@@ -136,7 +134,6 @@ public class SystemConstant {
|
|
|
public static final String SYS_CODE_ENABLE = "sys.code.enable";
|
|
|
// public static final String SYS_MESSAGE_ENABLE = "sys.message.enable";
|
|
|
// public static final String SYS_MESSAGE_RESEND_COUNT = "sys.message.resendCount";
|
|
|
- public static final String SYS_CONFIG_KEY_CHARSETS = "sys.txt.charset";
|
|
|
public static final String SYS_PDF_SIZE_LIST = "sys.pdf.size.list";
|
|
|
public static final String ADMIN_LOGO_URL = "admin.logo.url";
|
|
|
public static final String ATTACHMENT_TYPE = "attachment.type";
|
|
@@ -912,12 +909,7 @@ public class SystemConstant {
|
|
|
|
|
|
String txtDirName = stringJoiner.toString();
|
|
|
txtFileTemp = SystemConstant.getFileTempVar(SystemConstant.TXT_PREFIX);
|
|
|
- SysConfig sysConfig = commonCacheService.addSysConfigCache(SystemConstant.SYS_CONFIG_KEY_CHARSETS);
|
|
|
- if (Objects.nonNull(sysConfig) && Objects.nonNull(sysConfig.getConfigValue())) {
|
|
|
- IOUtils.write(message.getBytes(sysConfig.getConfigValue()), new FileOutputStream(txtFileTemp));
|
|
|
- } else {
|
|
|
- IOUtils.write(message.getBytes(StandardCharsets.UTF_8), new FileOutputStream(txtFileTemp));
|
|
|
- }
|
|
|
+ IOUtils.write(message.getBytes(StandardCharsets.UTF_8), new FileOutputStream(txtFileTemp));
|
|
|
|
|
|
String txtFileMd5 = DigestUtils.md5Hex(new FileInputStream(txtFileTemp));
|
|
|
if (oss || (!oss && dictionaryConfig.fssPrivateDomain().getConfig().startsWith(SystemConstant.START_PARENT))) {
|