save(['is_delete' => 1]); } /** * 获取评价总数量 * @return int|string */ public function getCommentTotal() { return $this->where(['is_delete' => 0])->count(); } }