fans.table.php 784 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. class FansTable extends We7Table {
  8. public function fansAll($openids) {
  9. global $_W;
  10. return $this->query->from('mc_mapping_fans')
  11. ->where('openid', $openids)
  12. ->where('uniacid', $_W['uniacid'])
  13. ->where('acid', $_W['acid'])
  14. ->getall('openid');
  15. }
  16. public function fansInfo($openid) {
  17. return $this->query->from('mc_mapping_fans')->where('openid', $openid)->get();
  18. }
  19. public function oauthFans($oauth_openid) {
  20. return $this->query->from('oauth_fans')->where('oauth_openid', $oauth_openid)->get();
  21. }
  22. }