WechatTemplate.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\model\wechat;
  12. use traits\ModelTrait;
  13. use basic\ModelBasic;
  14. /**
  15. * 微信模板消息model
  16. * Class WechatTemplate
  17. * @package app\admin\model\wechat
  18. */
  19. class WechatTemplate extends ModelBasic
  20. {
  21. use ModelTrait;
  22. /**
  23. * 获取系统分页数据 分类
  24. * @param array $where
  25. * @return array
  26. */
  27. public static function systemPage($where = array()){
  28. $model = new self;
  29. if($where['name'] !== '') $model = $model->where('name','LIKE',"%$where[name]%");
  30. if($where['status'] !== '') $model = $model->where('status',$where['status']);
  31. return self::page($model);
  32. }
  33. }