yaobo 7 лет назад
Родитель
Сommit
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.setCreated(new Timestamp(new Date().getTime()));
         trail.setTarget(target);
         trail.setTarget(target);
         trail.setIdTarget(idTarget);
         trail.setIdTarget(idTarget);
+        if(desc.length()>250)
+            desc = desc.substring(0, 250);
         trail.setText("管理员 " + adminOld.getName() + desc);
         trail.setText("管理员 " + adminOld.getName() + desc);
         trail = trailService.Insert(trail);
         trail = trailService.Insert(trail);
         return trail;
         return trail;