allowField(true)->save($data); } /** * 更新记录 * @param $data * @return bool|int */ public function edit($data) { return $this->allowField(true)->save($data) !== false; } /** * 删除记录 * @return int */ public function remove() { return $this->delete(); } }