save($data); } /** * 编辑记录 */ public function edit($data) { return $this->save($data); } /** * 删除记录 */ public function remove() { return $this->delete(); } /** * 获取广告总数量 */ public static function getAdTotal($where) { $model = new static; return $model->where($where)->count(); } }