群信息
This commit is contained in:
@@ -2,7 +2,22 @@
|
||||
namespace app\chat\model;
|
||||
|
||||
|
||||
use support\think\Db;
|
||||
|
||||
class ChatGroup extends BaseModel
|
||||
{
|
||||
public $tabla_name = 'chat_group';
|
||||
|
||||
|
||||
public static function isTh($group_id, $uid)
|
||||
{
|
||||
$group_user = Db::name('chat_group_member')->where(['group_id' => $group_id, 'user_id' => $uid, 'quit_time' => null, 'is_kicked' => 0])->find();
|
||||
if($group_user) {
|
||||
return 1;
|
||||
}else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user