table_common_member_wechat.php 640 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: table_common_member_wechat.php 34506 2014-05-13 02:09:15Z nemohou $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_common_member_wechat extends discuz_table {
  12. public function __construct() {
  13. $this->_table = 'common_member_wechat';
  14. $this->_pk = 'uid';
  15. $this->_pre_cache_key = 'common_member_wechat_';
  16. parent::__construct();
  17. }
  18. public function fetch_by_openid($openid) {
  19. return DB::fetch_first('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid));
  20. }
  21. }