yaobo hace 7 años
padre
commit
b41c2f6702

+ 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;