DiscuzX/upload/source/plugin/wechat/table/table_common_member_wechat.php

28 lines
667 B
PHP
Raw Normal View History

2016-12-15 08:20:54 -05:00
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: table_common_member_wechat.php 34506 2014-05-13 02:09:15Z nemohou $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
class table_common_member_wechat extends discuz_table {
public function __construct() {
$this->_table = 'common_member_wechat';
$this->_pk = 'uid';
$this->_pre_cache_key = 'common_member_wechat_';
parent::__construct();
}
public function fetch_by_openid($openid) {
return DB::fetch_first('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid));
}
}