@@ -48,6 +48,12 @@ class ModifyController extends BaseController
if (!empty($data)) {
$arr = json_decode($data, true);
if (!empty($arr)) {
+ $list = ModifyClass::getAllByCondition(['mainId' => $this->mainId], 'addTime asc', '*', null, true);
+ if (count($list) >= 15) {
+ if ($list[0]) {
+ $list[0]->delete();
+ }
$mData = [
'name' => $modifyName,
'mainId' => $this->mainId,