ChatLog.php 410 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. /**
  5. * 会话记录模型
  6. */
  7. class ChatLog extends Model
  8. {
  9. /**
  10. * select数据筛选
  11. *
  12. * @access public
  13. * @param mixed $where 条件
  14. * @return array 返回类型
  15. */
  16. public function selectChatLog($where=[])
  17. {
  18. $result = $this->where($where)->count();
  19. return $result;
  20. }//end selectChatLog()
  21. }