'+=1' ); parent::table('ay_content')->where("id=$id")->update($data); } // 新增喜欢 public function addLikes($id) { $data = array( 'likes' => '+=1' ); parent::table('ay_content')->where("id=$id")->update($data); } // 新增喜欢 public function addOppose($id) { $data = array( 'oppose' => '+=1' ); parent::table('ay_content')->where("id=$id")->update($data); } }