You've already forked qlg.tsgz.moe
							
							Init Repo
This commit is contained in:
		
							
								
								
									
										35
									
								
								hyhproject/mobile2/controller/Goodsconsult.php
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										35
									
								
								hyhproject/mobile2/controller/Goodsconsult.php
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
<?php
 | 
			
		||||
namespace wstmart\mobile\controller;
 | 
			
		||||
use wstmart\common\model\GoodsConsult as CG;
 | 
			
		||||
/**
 | 
			
		||||
 * ============================================================================
 | 
			
		||||
 * 商品咨询控制器
 | 
			
		||||
 */
 | 
			
		||||
class GoodsConsult extends Base{
 | 
			
		||||
    /**
 | 
			
		||||
    * 商品咨询页
 | 
			
		||||
    */
 | 
			
		||||
    public function index(){
 | 
			
		||||
        $this->assign('goodsId',(int)input('goodsId'));
 | 
			
		||||
        return $this->fetch('goodsconsult/list');
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
    * 根据商品id获取商品咨询
 | 
			
		||||
    */
 | 
			
		||||
    public function listQuery(){
 | 
			
		||||
        $m = new CG();
 | 
			
		||||
        return $m->listQuery();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
    * 发布商品咨询页
 | 
			
		||||
    */
 | 
			
		||||
    public function consult(){
 | 
			
		||||
        $this->assign('goodsId',(int)input('goodsId'));
 | 
			
		||||
        return $this->fetch('goodsconsult/consult');
 | 
			
		||||
    }
 | 
			
		||||
    public function add(){
 | 
			
		||||
        $m = new CG();
 | 
			
		||||
        return $m->add();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user