40 lines
920 B
PHP
40 lines
920 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
/**
|
|
* Notes:狸车公众号用户表
|
|
* Created on: 2021/11/24 14:13
|
|
* Created by: dengbw
|
|
*/
|
|
class App_weixin_users_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_app_weixin_users';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
/**
|
|
* Notes:根据id获取数据
|
|
* Created on: 2022/1/17 11:06
|
|
* Created by: dengbw
|
|
* @param $ids
|
|
* @param string $fileds
|
|
* @return array
|
|
*/
|
|
public function get_map_by_ids($ids, $fileds = '')
|
|
{
|
|
$rows = [];
|
|
$ids = array_filter($ids);
|
|
if ($ids) {
|
|
$cf_ids = implode(',', $ids);
|
|
$where = [
|
|
"id in ($cf_ids)" => null
|
|
];
|
|
$rows = $this->map('id', '', $where, '', '', '', $fileds);
|
|
}
|
|
return $rows;
|
|
}
|
|
}
|