qlg.tsgz.moe/hyhproject/admin/controller/Wxpassivereplys.php
2019-09-06 23:53:10 +08:00

86 lines
1.8 KiB
PHP
Executable File

<?php
namespace wstmart\admin\controller;
use wstmart\admin\model\WxPassiveReplys as M;
/**
* ============================================================================
* 微信被动回复管理控制器
*/
class Wxpassivereplys extends Base{
// 文本消息列表
public function text(){
return $this->fetch("text");
}
/**
* 获取文本消息分页
*/
public function textPageQuery(){
$m = new M();
return WSTGrid($m->textPageQuery());
}
/**
* 跳去文本消息新增/编辑页面
*/
public function textEdit(){
$id = Input("get.id/d",0);
$m = new M();
$data = $m->getById($id);
$this->assign('data',$data);
return $this->fetch("text_edit");
}
// 图文消息列表
public function news(){
return $this->fetch("news");
}
/**
* 获取图文消息分页
*/
public function newsPageQuery(){
$m = new M();
return $m->newsPageQuery();
}
/**
* 跳去图文消息新增/编辑页面
*/
public function newsEdit(){
$id = Input("get.id/d",0);
$m = new M();
$data = $m->getById($id);
$this->assign('data',$data);
return $this->fetch("news_edit");
}
//
public function sendNews(){
$wx = WXAdmin();
$wx->_doText();
}
/**
* 新增
*/
public function add(){
$m = new M();
return $m->add();
}
/**
* 修改
*/
public function edit(){
$m = new M();
return $m->edit();
}
/**
* 删除
*/
public function del(){
$m = new M();
return $m->del();
}
}