TechnologyController.php 1.9 KB
<?php
namespace app\portal\controller;

use cmf\controller\HomeBaseController;
use EasyWeChat\Foundation\Application;
use think\Db;
class TechnologyController extends HomeBaseController{

    //显示德国抗衰老技术
    public function technology(){

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

    }

    //显示德国合作伙伴
    public function partner(){

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

    }

    //显示安全保障
    public function security(){

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

    }

    //显示法律法规
    public function law(){

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

    }








}