yaobo 7 年之前
父节点
当前提交
b41c2f6702
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/java/cn/efunbox/audio/controller/TrailController.java

+ 2 - 0
src/main/java/cn/efunbox/audio/controller/TrailController.java

@@ -106,6 +106,8 @@ public class TrailController {
         trail.setCreated(new Timestamp(new Date().getTime()));
         trail.setTarget(target);
         trail.setIdTarget(idTarget);
+        if(desc.length()>250)
+            desc = desc.substring(0, 250);
         trail.setText("管理员 " + adminOld.getName() + desc);
         trail = trailService.Insert(trail);
         return trail;