weigh == 0) { $pk = $model->getPk(); $model->where($pk, $model[$pk])->update(['weigh' => $model[$pk]]); } } public function getContentAttr($value, $row) { return !$value ? '' : htmlspecialchars_decode($value); } }