lideyin 5 years ago
parent
commit
d42e740788

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/bridge/modules/cloudmarking/controller/CloudMarkingClientController.java

@@ -180,7 +180,7 @@ public class CloudMarkingClientController {
             final String tempAnswerDir = systemConfig.getTempDataDir() + "/exam-" + examId;
             if (!StringUtils.isNullOrEmpty(sb.toString())) {
                 String txtFilePath = tempAnswerDir + "/examStudent.txt";
-                IOUtil.toFile(txtFilePath.getBytes(Charset.forName("UTF-8")), txtFilePath);
+                IOUtil.toFile(sb.toString().getBytes(Charset.forName("UTF-8")), txtFilePath);
             }
 
         }