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.
31 lines
749 B
31 lines
749 B
<?php
|
|
/**
|
|
*
|
|
*/
|
|
include_once(SERVER_ROOT."/model/mBase.php");
|
|
|
|
|
|
class mUser extends mBase {
|
|
|
|
private $obj;
|
|
private $tbl;
|
|
private $login_tbl;
|
|
|
|
public function __construct() {
|
|
$this->obj = new dUser();
|
|
$this->tbl = 'admin_user_list';
|
|
$this->login_tbl = 'login_user_list';
|
|
}
|
|
|
|
public function getAdminUserByOpenid($openid) {
|
|
return $this->obj->select($this->tbl, array('sql'=>'`openid`=?', 'vals'=>array($openid)));
|
|
}
|
|
|
|
public function getLoginUserByOpenid($openid) {
|
|
return $this->obj->select($this->login_tbl, array('sql'=>'`openid`=?', 'vals'=>array($openid)));
|
|
}
|
|
|
|
public function addLoginUser($data) {
|
|
return $this->obj->insert($this->login_tbl, $data);
|
|
}
|
|
}
|