Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?php
namespace wstmart\wechat\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();
}
}