indexModel.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. class wxgzh_indexClassModel extends wxgzhModel
  3. {
  4. public function initWxgzh()
  5. {
  6. $this->settable('wotpl');
  7. }
  8. /**
  9. * 获取系统上模版消息
  10. */
  11. public function getxinhutpl()
  12. {
  13. $barr[] = array(
  14. 'title' => '流程待办',
  15. 'params'=> array(
  16. 'name' => '姓名',
  17. 'applyname' => '申请人',
  18. 'deptname' => '申请人部门',
  19. 'sericnum' => '单号',
  20. 'modename' => '模块名称',
  21. 'summary' => '备注摘要'
  22. ),
  23. 'paramsdefault'=> array(
  24. 'name' => '赵子龙',
  25. 'applyname' => '张飞',
  26. 'deptname' => '技术部',
  27. 'sericnum' => 'TEST-20190326',
  28. 'modename' => '请假条',
  29. 'summary' => '请假时间2019-03-26的9时到18共8小时'
  30. ),
  31. );
  32. $xhtype = getconfig('xinhutype');
  33. if(!isempt($xhtype)){
  34. $obj = m($xhtype);
  35. if(method_exists($obj, 'getwxgzhtpl')){
  36. $narr = $obj->getwxgzhtpl();
  37. if(is_array($narr))foreach($narr as $k=>$rs1)$barr[]=$rs1;
  38. }
  39. }
  40. return $barr;
  41. }
  42. /**
  43. * 发模版消息
  44. */
  45. private $tplidarr = array();
  46. public function sendtpl($openid, $tplid, $params=array(),$istest=false)
  47. {
  48. return $this->setbackarr('不能使用');
  49. }
  50. /**
  51. * 获取我消息模版列表
  52. */
  53. public function gettpllist()
  54. {
  55. return $this->setbackarr('不能使用');
  56. }
  57. }
粤ICP备19079148号