|
@@ -7,8 +7,7 @@ import com.mooctest.data.SimpleResponse;
|
|
|
import com.mooctest.data.TaskDTO;
|
|
|
import com.mooctest.model.*;
|
|
|
import com.mooctest.service.*;
|
|
|
-import com.mooctest.service.impl.ConfigurationService;
|
|
|
-import com.mooctest.util.ImportDataMap;
|
|
|
+import com.mooctest.service.ConfigurationService;
|
|
|
import com.mooctest.util.ReportUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -225,10 +224,10 @@ public class TaskController {
|
|
|
@ResponseBody
|
|
|
public SimpleResponse addCrowdTaskDefault(@RequestParam("name")String name, @RequestParam("description")String description,@RequestParam("collaborativeType")int collaborativeType,
|
|
|
@RequestParam("threePageUrl") String threePageUrl, @RequestParam("fileName") String fileName){
|
|
|
- Map<String, String> configurationMap = configurationService.getConfigurationMap();
|
|
|
- String os = configurationMap.get("os");
|
|
|
+ Map<String, Object> configurationMap = configurationService.getConfigurationMap();
|
|
|
+ String os = configurationMap.get("os").toString();
|
|
|
// 后边generatePaperType方法中会根据;进行split
|
|
|
- os = os.replaceAll(",", ";");
|
|
|
+ os = os.replaceAll(",", ";").replaceAll(" ", "").replaceAll("\\[", "").replaceAll("\\]", "");
|
|
|
|
|
|
if(threePageUrl == null || threePageUrl.equals("")) {
|
|
|
return new SimpleResponse(400,"请提交三级页面");
|