getRow($sql,true,true); $root['content'] = $article['content']; api_ajax_return($root); } //隐私政策 public function privacy(){ $root = array(); $root['page_title'] = "隐私政策"; $sql = "select a.id,a.cate_id,a.title,a.content from ".DB_PREFIX."article a left join ".DB_PREFIX."article_cate b on b.id = a.cate_id where a.is_delete = 0 and a.is_effect = 1 and b.title = '隐私政策'"; $article = $GLOBALS['db']->getRow($sql,true,true); $root['content'] = $article['content']; api_ajax_return($root); } //服务条款 public function service(){ $root = array(); $root['page_title'] = "服务条款"; $sql = "select a.id,a.title,a.cate_id,a.content from ".DB_PREFIX."article a left join ".DB_PREFIX."article_cate b on b.id = a.cate_id where a.is_delete = 0 and a.is_effect = 1 and b.title = '主播协议'"; $article = $GLOBALS['db']->getRow($sql,true,true); $root['content'] = $article['content']; api_ajax_return($root); } } ?>