|
|
@@ -46,7 +46,8 @@ public class BehaviorRecordServiceImpl implements BehaviorRecordService {
|
|
|
try {
|
|
|
Date now = new Date();
|
|
|
String filePath = "uploads/" + assignmentId + "_" + studentId + "_" + now.getTime() + file.getOriginalFilename();
|
|
|
- String url = ossUtil.uploadFile(file.getInputStream(), filePath);
|
|
|
+ String urlStr = ossUtil.uploadFile(file.getInputStream(), filePath);
|
|
|
+ String url = urlStr.split("\\?")[0];
|
|
|
BehaviorRecord behaviorRecord = new BehaviorRecord();
|
|
|
behaviorRecord.setAssignmentId(assignmentId);
|
|
|
behaviorRecord.setStudentId(studentId);
|