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,49 @@
<?php
namespace wstmart\admin\controller;
use wstmart\admin\model\TemplateMsgs as M;
/**
* ============================================================================
* 微信消息模板控制器
*/
class Wxtemplatemsgs extends Base{
public function index(){
return $this->fetch("list");
}
/**
* 获取分页
*/
public function pageQuery(){
$m = new M();
return WSTGrid($m->pageQuery(3,'TEMPLATE_WX'));
}
/**
* 跳转去新增页面
*/
public function toEdit(){
$id = (int)input('id');
$m = new M();
if($id>0){
$data = $m->getById($id);
}else{
$data = $m->getEModel('template_msgs');
}
$this->assign('object',$data);
return $this->fetch("edit");
}
/**
* 发送消息
*/
public function edit(){
return model('WxTemplateParams')->edit();
}
/**
* 获取参数列表
*/
public function listQuery(){
return model('WxTemplateParams')->listQuery((int)input('post.parentId'));
}
}