20 lines
480 B
PHP
20 lines
480 B
PHP
<?php
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Market_sytopic_user_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_market_sytopic_user';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
//判断是否管理员
|
|
public function checkIsAdmin($id, $topicId)
|
|
{
|
|
$isAdmin = false;
|
|
$this->get(['id' => $id, 'topic_id' => $topicId]);
|
|
return $isAdmin;
|
|
}
|
|
} |