xxxrrrdddd 2 years ago
parent
commit
2b8b6686a8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/admin/model/Agreement.php

+ 3 - 0
application/admin/model/Agreement.php

@@ -18,6 +18,9 @@ class Agreement extends Model
     // 自动写入时间戳字段
     // 自动写入时间戳字段
     protected $autoWriteTimestamp = false;
     protected $autoWriteTimestamp = false;
 
 
+    protected $readonly=[
+        'title',
+    ];
     // 定义时间戳字段名
     // 定义时间戳字段名
     protected $createTime = false;
     protected $createTime = false;
     protected $updateTime = false;
     protected $updateTime = false;