初始化代码
This commit is contained in:
19
app/im/model/ImUser.php
Normal file
19
app/im/model/ImUser.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace app\im\model;
|
||||
|
||||
use app\BaseModel;
|
||||
|
||||
class ImUser extends BaseModel
|
||||
{
|
||||
//定义表名称
|
||||
protected $name = 'longbing_card_user';
|
||||
|
||||
//获取用户信息
|
||||
public function getUser($filter)
|
||||
{
|
||||
$filter['deleted'] = 0;
|
||||
$result = $this->where($filter)->find();
|
||||
if(!empty($result)) $result = $result->toArray();
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user