You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
85
hyhproject/admin/controller/Wxpassivereplys.php
Executable file
85
hyhproject/admin/controller/Wxpassivereplys.php
Executable file
@ -0,0 +1,85 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user