|
|
|
@ -8,15 +8,18 @@
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
namespace Media\Controller;
|
|
|
|
|
|
|
|
|
|
use Admin\Model\GameModel;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 文档模型控制器
|
|
|
|
|
* 文档模型列表和详情
|
|
|
|
|
*/
|
|
|
|
|
class ServiceController extends BaseController {
|
|
|
|
|
class ServiceController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public function index($value=''){
|
|
|
|
|
public function index($value = '')
|
|
|
|
|
{
|
|
|
|
|
$yidata = M('Kefuquestion')
|
|
|
|
|
->field('title,titleurl')
|
|
|
|
|
->where(array('state' => 1, 'title' => array('neq', '常见问题')))
|
|
|
|
@ -34,7 +37,9 @@ class ServiceController extends BaseController {
|
|
|
|
|
$this->assign('erdata', $erdata);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
public function detail(){
|
|
|
|
|
|
|
|
|
|
public function detail()
|
|
|
|
|
{
|
|
|
|
|
$yidata = M('Kefuquestion')
|
|
|
|
|
->field('title,titleurl')
|
|
|
|
|
->where(array('status' => 1, 'istitle' => 1))
|
|
|
|
@ -45,6 +50,7 @@ class ServiceController extends BaseController {
|
|
|
|
|
$map1['status'] = 1;
|
|
|
|
|
$map1['istitle'] = 2;
|
|
|
|
|
$map1['titleurl'] = I('kefu');
|
|
|
|
|
empty(I('get.search')) || $map1['zititle'] = ['like', '%' . I('get.search') . '%'];
|
|
|
|
|
if ($_REQUEST['para'] != '') {
|
|
|
|
|
$map1['id'] = $_REQUEST['para'];
|
|
|
|
|
}
|
|
|
|
@ -61,12 +67,15 @@ class ServiceController extends BaseController {
|
|
|
|
|
$this->assign('erdata', $erdata);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
public function uploadAvatar() {
|
|
|
|
|
|
|
|
|
|
public function uploadAvatar()
|
|
|
|
|
{
|
|
|
|
|
// 成功 $this->ajaxReturn(array('state'=>'SUCCESS','url'=>'图片地址'),C('DEFAULT_AJAX_RETURN'));
|
|
|
|
|
$this->ajaxReturn(array('state' => '上传失败'), C('DEFAULT_AJAX_RETURN'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function sask() {
|
|
|
|
|
public function sask()
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -74,7 +83,8 @@ class ServiceController extends BaseController {
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function sask2() {
|
|
|
|
|
public function sask2()
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -82,7 +92,8 @@ class ServiceController extends BaseController {
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function sask3() {
|
|
|
|
|
public function sask3()
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -90,23 +101,28 @@ class ServiceController extends BaseController {
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function spwd($p=1) {
|
|
|
|
|
public function spwd($p = 1)
|
|
|
|
|
{
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function spay($p=1) {
|
|
|
|
|
public function spay($p = 1)
|
|
|
|
|
{
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function saccont($p=1) {
|
|
|
|
|
public function saccont($p = 1)
|
|
|
|
|
{
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function sgift($p=1) {
|
|
|
|
|
public function sgift($p = 1)
|
|
|
|
|
{
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function sother($p=1) {
|
|
|
|
|
public function sother($p = 1)
|
|
|
|
|
{
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|