MembersController.php 1.0 KB
<?php
namespace app\portal\controller;

use cmf\controller\HomeBaseController;
use EasyWeChat\Foundation\Application;
use think\Db;

class MembersController extends HomeBaseController{

    //显示会员规则
    public function members(){

        $category_id = Db::name('portal_category_post') -> where('category_id',25) -> find();
        $data = Db::name('portal_post') -> where('id',$category_id['post_id']) -> find();
        $data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($data['post_content']));
        $this -> assign('data',$data);
        return $this -> fetch();

    }


    //显示会员优势
    public function members_you(){

        $category_id = Db::name('portal_category_post') -> where('category_id',26) -> find();
        $data = Db::name('portal_post') -> where('id',$category_id['post_id']) -> find();
        $data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($data['post_content']));
        $this -> assign('data',$data);
        return $this -> fetch();

    }














}