table_common_member_wechatmp.php 653 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_wechatmp.php 35227 2015-03-05 06:49:24Z nemohou $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_common_member_wechatmp extends discuz_table {
  12. public function __construct() {
  13. $this->_table = 'common_member_wechatmp';
  14. $this->_pk = 'uid';
  15. $this->_pre_cache_key = 'common_member_wechatmp_';
  16. parent::__construct();
  17. }
  18. public function fetch_by_openid($openid) {
  19. return DB::fetch_all('SELECT * FROM %t WHERE openid=%s', array($this->_table, $openid), 'uid');
  20. }
  21. }