即时系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
515 B

<?php
/**
* raingad IM [ThinkPHP6]
* @author xiekunyu <raingad@foxmail.com>
*/
namespace app\enterprise\model;
use app\BaseModel;
use think\facade\Db;
class Friend extends BaseModel
{
protected $pk="friend_id";
public static function getFriend($map){
$list=self::where($map)->select();
$data=[];
if($list){
$list=$list->toArray();
foreach($list as $k=>$v){
$data[$v['friend_user_id']]=$v;
}
}
return $data;
}
}