You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
754 B
40 lines
754 B
<?php
|
|
namespace app\publics\controller;
|
|
use app\ApiRest;
|
|
|
|
use app\publics\model\TmplConfig;
|
|
use longbingcore\wxcore\WxTmpl;
|
|
use think\App;
|
|
|
|
|
|
class IndexTmpl extends ApiRest
|
|
{
|
|
|
|
protected $model;
|
|
public function __construct(App $app) {
|
|
parent::__construct($app);
|
|
|
|
$this->model = new TmplConfig();
|
|
}
|
|
|
|
|
|
/**
|
|
* @author chenniang
|
|
* @DataTime: 2019-12-26 15:40
|
|
* @功能说明: 获取模版消息
|
|
*/
|
|
public function getTmplId(){
|
|
$input = $this->_input;
|
|
$dis[] = ['uniacid','=',$this->_uniacid];
|
|
$dis[] = ['tmpl_id','<>',0];
|
|
$dis[] = ['tmpl_name','in',$input['tmpl_name']];
|
|
$data = $this->model->tmplIdList($dis);
|
|
return $this->success($data);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|