Compare commits

..

No commits in common. '0958c3ea37ec75c0c2e13f671d21435a172bf894' and '3579a1aa63352a5336a688383358ca9d938d296c' have entirely different histories.

  1. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java

@ -184,12 +184,7 @@ public class TaskController extends JeecgController<Task, ITaskService> {
@ApiOperation(value = "任务管理-编辑", notes = "任务管理-编辑") @ApiOperation(value = "任务管理-编辑", notes = "任务管理-编辑")
@PutMapping(value = "/edit") @PutMapping(value = "/edit")
public Result<?> edit(@RequestBody Task task) { public Result<?> edit(@RequestBody Task task) {
String taskDescribe = task.getTaskDescribe();
boolean st = taskDescribe.contains("data:image/png;base64");
if (st)
return Result.error("不能直接将图片放入任务描述中,因为图片将会进行base64转码,数据库中text字段不一定存下");
taskService.updateById(task); taskService.updateById(task);
return Result.OK("编辑成功!"); return Result.OK("编辑成功!");
} }

Loading…
Cancel
Save